Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / December 2005



Tip: Looking for answers? Try searching our database.

Make white space between <p> and <ul> equal to font size

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
namenotgivenhere - 08 Dec 2005 02:30 GMT
My design goal is to make the white space above and below <p> and <ul> equal
to the height of my font. The first step to achieving this I believe is to
have an equal amount of white space above or below <p> and <ul>. Can someone
suggest a method using css to accomplish this? I have succeeded in doing
this in IE6 but I'd also like to know if there's a method to achive this
goal that will have a similar visual look in other modern browsers. TIA
kchayka - 08 Dec 2005 04:34 GMT
> My design goal is to make the white space above and below <p> and <ul> equal
> to the height of my font.

p, ul { margin: 1em 0 }

Signature

Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.

namenotgivenhere - 08 Dec 2005 05:03 GMT
> > My design goal is to make the white space above and below <p> and <ul> equal
> > to the height of my font.
>
> p, ul { margin: 1em 0 }

Thank you for your answer. I think you're saying that the margin for both
will be 1em top and bottom and 0 left and right. Two questions. Will this
have a similar look in IE6 and other browsers? Why bother to specify 0 for
left and right margins, why not omit this? TIA
kchayka - 09 Dec 2005 01:15 GMT
> "kchayka" <usenet@c-net.us> wrote in message
>>
[quoted text clipped - 3 lines]
> have a similar look in IE6 and other browsers? Why bother to specify 0 for
> left and right margins, why not omit this? TIA

Why don't you just try it and see how it works in your particular case?

Signature

Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.

xyZed - 28 Dec 2005 18:53 GMT
There is circumstantial evidence that on Thu, 08 Dec 2005 19:15:21
-0600,  kchayka <usenet@c-net.us> wrote
_______________________________________________________

>›   > "kchayka" <usenet@c-net.us> wrote in message
>›   >>
[quoted text clipped - 5 lines]
>›  
>›   Why don't you just try it and see how it works in your particular case?

One reason is that if someone has given the answer, I would now know
it instead of wondering  what the answer was ;-)

Signature

Free washing machine help and advice. Free washing machine reviews. Buy washing machine parts.

www.washerhelp.co.uk

www.xyzed.co.uk/newsgroups/top-posting.html

saz - 28 Dec 2005 19:39 GMT
> There is circumstantial evidence that on Thu, 08 Dec 2005 19:15:21
> -0600,  kchayka <usenet@c-net.us> wrote
[quoted text clipped - 12 lines]
> One reason is that if someone has given the answer, I would now know
> it instead of wondering  what the answer was ;-)

You don't get it.  Check it out for yourself in various browsers, or are
you trying to say you are lazy and want others to do it for you?
xyZed - 29 Dec 2005 15:44 GMT
There is circumstantial evidence that on Wed, 28 Dec 2005 13:39:22
-0600,  saz <saz1958@nospammersexcite.com> wrote
_______________________________________________________

>›   > One reason is that if someone has given the answer, I would now know
>›   > it instead of wondering  what the answer was ;-)
>›   >
>›   You don't get it.  Check it out for yourself in various browsers, or are
>›   you trying to say you are lazy and want others to do it for you?

Newsgroups are much bigger than that. One person gets a question
answered, and thousands of future people can find the answer
instantly. None of us want to research a problem, find that someone's
asked the same question before - only to find the answer was something
like "check it out your lazy self."

Signature

Free washing machine help and advice.  

www.washerhelp.co.uk

www.xyzed.co.uk/newsgroups/top-posting.html

saz - 29 Dec 2005 18:13 GMT
> There is circumstantial evidence that on Wed, 28 Dec 2005 13:39:22
> -0600,  saz <saz1958@nospammersexcite.com> wrote
[quoted text clipped - 11 lines]
> asked the same question before - only to find the answer was something
> like "check it out your lazy self."

So you are comfortable with others figuring it out for you?  Your
problem is very minor and can be easily researched in a matter of
minutes on your own.

I stand by my lazy comment.
xyZed - 30 Dec 2005 07:41 GMT
There is circumstantial evidence that on Thu, 29 Dec 2005 12:13:35
-0600,  saz <saz1958@nospammersexcite.com> wrote
_______________________________________________________

>›   So you are comfortable with others figuring it out for you?  Your
>›   problem is very minor and can be easily researched in a matter of
>›   minutes on your own.
>›  
>›   I stand by my lazy comment.

I'm very comfortable with that. Isn't that what Newsgroups are all
about? People who don't know, ask people who do, and the answers are
there forever for others to find? Long live Newsgroups. If people had
to work  it out for themselves there's no point in Newsgroups. I fully
understand your point about people needing to be prepared to help
themselves though too, and not be totally lazy. It's a fine line at
times :-)

Signature

Free washing machine help and advice.  

www.washerhelp.co.uk

www.xyzed.co.uk/newsgroups/top-posting.html

Barbara de Zoete - 30 Dec 2005 07:56 GMT
> Isn't that what Newsgroups are all
> about? People who don't know, ask people who do, and the answers are
> there forever for others to find?

What you describe is a helpdesk with a good archiving and tracking and  
tracing system, not a newsgroup in usenet.

> Long live Newsgroups.

Newsgroups are much more than Q&A.

> If people had
> to work  it out for themselves there's no point in Newsgroups.

<URL:http://www.amatecon.com/fish.html>

Signature

,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.

|      weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
|  webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html    |
`-------------------------------------------------- --<--@ ------------'
Leonard Blaisdell - 30 Dec 2005 08:29 GMT
> <URL:http://www.amatecon.com/fish.html>

And of course the old:
Give a man a match and you warm him for a day.
Set a man on fire and you warm him for the rest of his life.
Any others? Anybody?

leo

Signature

<http://web0.greatbasin.net/~leo/>

meltedown - 28 Dec 2005 23:30 GMT
>>>My design goal is to make the white space above and below <p> and <ul>
>
[quoted text clipped - 8 lines]
> have a similar look in IE6 and other browsers? Why bother to specify 0 for
> left and right margins, why not omit this? TIA

margin: 1em 0;
The left and right don't have to be specified, but the alternative is
margin-top:1em; margin-bottom:1em;
 Its just easier to do:
margin: 1em 0;

If you just did:
margin: 1em;

That would make the left and right margins 1em too, and you probably
don't want that.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.