HighDots Forums  

Re: CSS Problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: CSS Problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Dorward
 
Posts: n/a

Default Re: CSS Problem - 08-13-2003 , 02:52 AM






Gilles wrote:

Quote:
Can someone tell me why this doesnt works? There should be Framework
around the whole menu..

div style="position:absolute;left: 30px; top:100px;"
h3>Navigation</h3
/div
div style="position:absolute;left: 30px; top:130px;"
Why are you using two sepertly positioned <div> elements here? If the user
have a large font size some of the content will be obscured. One <div>
containing all the relevent content will do.

Quote:
p class="info"
ul style="list-style-type:disc"
Lists can not form part of paragraphs.

--
David Dorward http://dorward.me.uk/


Reply With Quote
  #2  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: CSS Problem - 08-20-2003 , 05:32 AM






In article <bhcqoq$3dl$2$830fa7a5 (AT) news (DOT) demon.co.uk>, David Dorward wrote:
Quote:
Gilles wrote:

Can someone tell me why this doesnt works? There should be Framework
around the whole menu..

p class="info"
ul style="list-style-type:disc"

Lists can not form part of paragraphs.
Which means that above code should work same as this:
<p class="info">
</p><ul style="list-style-type:disc">

That should be rendered exactly same as:
<ul style="list-style-type:disc">

http://www.w3.org/TR/html4/appendix/...es-line-breaks
Quote:
line break immediately following a start tag must be ignored
http://www.w3.org/TR/html4/intro/sgm...#idx-element-8
Quote:
start tag is closed by the following block element
http://www.w3.org/TR/html4/struct/text.html#edef-P
Quote:
User agents should ignore empty P elements.
Is there any browser that gets it right?

Code in orginal post had space after <p class="info">, so it should be
rendered as
<p class="info"> </p><ul style="list-style-type:disc">

OP, if there some reason why it is not possible to have
ul { border:1px solid grey; background:#E0E0E0; padding:4px;}
use div instead of P.


--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.