Posted by palun on 01/11/08 09:11
Sorry, it's not deployed. But the code is really simple:
In html:
<div id="anId">
Some stuff...
</div>
and in css:
#anId {
width=400px;
}
But the content ("Some stuff") still gets spread out over the whole page...
I just realized: Could any of the stuff inside the div affect its width?
I.e. can the content affect the width of the of container? (Not very
logical...)
/ulf
rf skrev:
> "palun" <flume2001@gmail.com> wrote in message
> news:64Ghj.2626$R_4.2127@newsb.telia.net...
>> Ok, here´s a really elementary question:
>>
>> -- Why doesn't "width" and/or "max-width" in CSS have any effect on, for
>> instance <div> or <td>? (I'm using Firefox.)
>
> They do. URL to what you have tried?
>
Navigation:
[Reply to this message]
|