Advertisement

06.18.2007 at 08:14AM PDT, ID: 22640763 | Points: 125
[x]
Attachment Details

Non-fixed-width elements in flowing width layout

Asked by arantius in Cascading Style Sheets (CSS)

Tags: , , , ,

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>Start Free Trial
[+][-]06.18.2007 at 12:40PM PDT, ID: 19309905

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2007 at 12:42PM PDT, ID: 19309925

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.18.2007 at 01:20PM PDT, ID: 19310305

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 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.18.2007 at 01:22PM PDT, ID: 19310322

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 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32