Jazzcreation wrote:
> I'd like to position a div of a certain height (say 30px) so that it starts
> 20px from the left hand edge, and runs up to the right edge of the screen.
>
> I normally try to figure out a way of doing this in css, then give up and
> use a table, which provides a pretty straightforward solution.
>
> Can anyone tell me what the css solution is?
>
> Thanks,
> Peter
I suppose it would depend on the particular situation. But here is one way:
:: css ::
body { background-color: #fff; color: #000; margin: 0; padding: 0; }
p { margin: 0; padding: 0; line-height: 1.8; }
#stuff { background-color: fuchsia; color: inherit; margin-left: 20px;}
:: html :
<div id="stuff"><p>stuff</p></div>
Best,
~dL


-- 
http://chelseacreekstudio.com/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to