[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Non-fixed-width elements in flowing width layout

Asked by arantius in Cascading Style Sheets (CSS)

Tags: width, fixed, align, content, flowing

I've been tasked with implementing a design which incorporates the following requirements:

- Flowing width
- Line 1: input box, submit button
- Line 2: Logo image right aligned with the edge of the submit button above it

I also know that the text on this submit button will vary, i.e. with the language the current user has selected.

I can implement this in 30 seconds with tables, but I *hate* tables for layout.  I have a rule against using tables for layout and I do *not* want to break it.  How do I re-implement this exact layout without using tables?  (Repeated 3 times only to exemplify the different possible submit button contents.)

-----------------------------------------------------------------------------

<html>
<body>

<table width='100%'>
<tr>
<td width='100%'><input type='text' style='width: 100%;'></input></td>
<td><input type='submit' value='Go'></td>
</tr>
<tr>
<td colspan='2' align='right'><img src='http://www.google.com/logos/Logo_25wht.gif'></td>
</tr>
</table>
<hr>

<table width='100%'>
<tr>
<td width='100%'><input type='text' style='width: 100%;'></input></td>
<td><input type='submit' value='Gehen'></td>
</tr>
<tr>
<td colspan='2' align='right'><img src='http://www.google.com/logos/Logo_25wht.gif'></td>
</tr>
</table>
<hr>

<table width='100%'>
<tr>
<td width='100%'><input type='text' style='width: 100%;'></input></td>
<td><input type='submit' value='Vada'></td>
</tr>
<tr>
<td colspan='2' align='right'><img src='http://www.google.com/logos/Logo_25wht.gif'></td>
</tr>
</table>
<hr>

</body>
</html>
[+][-]06/18/07 12:40 PM, ID: 19309905Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/07 12:42 PM, ID: 19309925Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/07 01:20 PM, ID: 19310305Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/07 01:22 PM, ID: 19310322Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92