473,386 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

no empty line after <UL>

Hi!

Is it possible that there's no empty line inserted after an <UL>?

Timo
Jul 20 '05 #1
5 7365
Ivo
"Timo Nentwig" <tc*@spamgourmet.org> wrote in message
news:2g************@uni-berlin.de...
Hi!

Is it possible that there's no empty line inserted after an <UL>?

Timo


If you can dream it, a browser can do it.

ul { margin-bottom: 0; }

HTH
Ivo
Jul 20 '05 #2
Ivo wrote:
If you can dream it, a browser can do it.


Gee, how poetic. :-)

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #3
"Ivo" <no@thank.you> wrote in
comp.infosystems.www.authoring.stylesheets:
"Timo Nentwig" <tc*@spamgourmet.org> wrote in message
news:2g************@uni-berlin.de...
Is it possible that there's no empty line inserted after an <UL>?


ul { margin-bottom: 0; }


I rather suspect that applies to the margin at the end of the list,
not the margin at the end of the opening <ul> tag.

To prevent a blank line after the (invisible) <ul> tag, I bet you
need
li { margin-top: 0 }

But I haven't actually tried this.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
Ivo
"Stan Brown" wrote
"Ivo" <no@thank.you> wrote
"Timo Nentwig" <tc*@spamgourmet.org> wrote
Is it possible that there's no empty line inserted after an <UL>?


ul { margin-bottom: 0; }


I rather suspect that applies to the margin at the end of the list,
not the margin at the end of the opening <ul> tag.

To prevent a blank line after the (invisible) <ul> tag, I bet you
need
li { margin-top: 0 }

But I haven't actually tried this.


There is no margin at the end the ul opening tag, if that means the same
spot as the beginning of the first <li>. Nor do li's have vertical margins
by default in the browsers I know, or lists would grow long very quickly.
The line I gave earlier, ul { margin-bottom: 0; }, suffices.
Let's keep the Usenet noise to a minimum.
Ivo
Jul 20 '05 #5
On Mon, 17 May 2004 07:27:56 +0200, Ivo <no@thank.you> wrote:
"Stan Brown" wrote
To prevent a blank line after the (invisible) <ul> tag, I bet you
need
li { margin-top: 0 }

There is no margin at the end the ul opening tag, if that means the same
spot as the beginning of the first <li>.


Yes there are. Opera 7.23 renders lists with an appx 1em top margin and no
bottom margin. IE6 and Mozilla 1.6 both put appx 1em margins on top and
bottom.

It's unclear whether OP wanted margins at all, and precisely where - this
extra information might or might not be useful to him. But, as top and
bottom margins collapse, to eliminate a blank space from between adjacent
lists both top and bottom margins must be zeroed out.
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
9
by: Akseli Mäki | last post by:
Hi, the subject say quite a lot. I have about the following code(4.01 transitional): <p>blaa blaa blaa <ul> <li><a href="foo.html">foo</a></li> <li><a href="bar.html">bar</a></li> </ul>
5
by: toylet | last post by:
Attached is some css codes for a website. It has 3 parts: top-bar, side-bar (on the left) and main-body. The top-bar has a mouseover menu called top-menu implemented via ul:hover. When the mouse...
4
by: abs | last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li> element ? In other words I have several lists like this: <ul id="1"> <li>Aaaaaaaa</li> <li>Bbbbbbbb</li>...
2
by: Shaun | last post by:
Hello! I have a quick question regarding CSS and having it applied to all elements. I am trying to eliminate the gap between a paragraph and a list that usually occurs in html and I've found...
1
by: jasonchan | last post by:
How do you align <ol> and <ul> elements when they are contained in a floated box? Here is my website: http://geocities.com/jasonchan483/ Here's my problem. The markers of the lists are...
5
by: Syl | last post by:
Hello experts!! The top menu navigation bar displays perfectly in IE, but does not display properly in Mozilla or Netscape : http://checkeredshirt.com/textonly.html For some reason the non-IE...
3
by: Man-wai Chang | last post by:
A 2 columns x 10 rows matrix input form <ul> <li> <ul> <li>item name 1 <li><input type="textbox" name="input_col_1_row_1"> <li><input type="textbox" name="input_col_1_row_2"> </ul> <li>
6
by: capricious | last post by:
Is it possible, so that when you do multiple <UL>'s to control how deep the UL's are marked? For example, it would defaultly look like this with multiple ULs and LIs: -- Code : Main...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.