Posted by Ben C on 01/11/08 10:32
On 2008-01-11, palun <flume2001@gmail.com> wrote:
> Terribly sorry. My mistake. (I wrote the code in the message. Should
> have copied.)
>
> Anyway, the code is correct in the CSS-file (and it still doesn't work).
[...]
>>> But the content ("Some stuff") still gets spread out over the whole page...
>>
>> It's always a good idea to validate the HTML and CSS before asking for
>> help:
>>
>> #anId {
>> width: 400px;
>> }
I assure you width does work. There must be something else going on:
perhaps another more specific style sets width back to auto, perhaps you
mis-typed the selector, perhaps the contents overflow.
This is why you have to post a url.
[Back to original message]
|