The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> top margin
minidiapolis
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
minidiapolis
post Mar 21 2007, 02:47 PM
Post #3


Serious Coder
*****

Group: Members
Posts: 437
Joined: 3-September 06
Member No.: 57



QUOTE(Christian J @ Mar 21 2007, 01:47 PM) *

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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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! tongue.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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."
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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? blink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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



QUOTE(pandy @ Mar 21 2007, 06:06 PM) *
Heah, found that, but isn't "replaced element" defined in HTML too? blink.gif
There are a couple uses of the word "replaced" but they don't define (or even mention) "replaced elements" as such. It seems to be a CSS concept.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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. blink.gif
Thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 12:17 PM