top margin |
top margin |
minidiapolis |
Mar 21 2007, 08:17 AM
Post
#1
|
Serious Coder Group: Members Posts: 437 Joined: 3-September 06 Member No.: 57 |
Hi, why isn't http://www.cs.iupui.edu/~mjsmith recognizing the top margin in the menu section?
|
Christian J |
Mar 21 2007, 12:47 PM
Post
#2
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
According to http://www.w3.org/TR/CSS21/box.html#margin-properties "vertical margins will not have any effect on non-replaced inline elements".
Try putting the links in a block level container element (like P) and give that a margin instead. Or you could use some top margin on the BODY element in the menu frame page. |
minidiapolis |
Mar 21 2007, 02:47 PM
Post
#3
|
Serious Coder Group: Members Posts: 437 Joined: 3-September 06 Member No.: 57 |
According to http://www.w3.org/TR/CSS21/box.html#margin-properties "vertical margins will not have any effect on non-replaced inline elements". Try putting the links in a block level container element (like P) and give that a margin instead. Or you could use some top margin on the BODY element in the menu frame page. Could you explain what non-replaced inline elements are? |
pandy |
Mar 21 2007, 03:16 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Replaced elements are those that embed some kind of object in the page. An example is IMG. Form controls are also replaced elements.
<ADDED> I realize now that the above isn't a good definition. I'm searching for the exact words in the spec but I don't find it. Darin! Come and help! |
pandy |
Mar 21 2007, 03:28 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Found the CSS view on the matter.
http://www.w3.org/TR/CSS21/conform.html#replaced-element |
Darin McGrew |
Mar 21 2007, 03:41 PM
Post
#6
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
An inline element is one that does not "form new blocks of content".
A replaced element is one that is "outside the scope of the CSS formatter, such as an image, embedded document, or applet." |
pandy |
Mar 21 2007, 08:06 PM
Post
#7
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Heah, found that, but isn't "replaced element" defined in HTML too?
|
Darin McGrew |
Mar 22 2007, 11:46 AM
Post
#8
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
|
pandy |
Mar 22 2007, 09:49 PM
Post
#9
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
Really? Odd. I guess my memory tricks me. Thought they had "always" been called that.
Thanks. |
Lo-Fi Version | Time is now: 28th April 2024 - 12:17 PM |