473,320 Members | 2,071 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,320 software developers and data experts.

Parameters of <ul>.

Hello,

I have the following part of code

sentence_1
<ul>
<li> sentence_2
</ul>

And I would like to decrease distance between sentence_1 and
sentence_2. Is it possible?

Jul 24 '05 #1
4 2786
Gazing into my crystal ball I observed op*********@yahoo.com writing in
news:11**********************@g49g2000cwa.googlegr oups.com:
Hello,

I have the following part of code

sentence_1
<ul>
<li> sentence_2
</ul>

And I would like to decrease distance between sentence_1 and
sentence_2. Is it possible?


Are you nesting uls? What you have here looks off, like it should be
<ul>
<li>sentence_1</li>
<li>sentence_2</li>
</ul>

But, to answer your question, look into margin on the ul element:
ul {margin:0}

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #2
Adrienne wrote:

Gazing into my crystal ball I observed op*********@yahoo.com writing in
news:11**********************@g49g2000cwa.googlegr oups.com:
Hello,

I have the following part of code

sentence_1
<ul>
<li> sentence_2
</ul>

And I would like to decrease distance between sentence_1 and
sentence_2. Is it possible?


Are you nesting uls? What you have here looks off, like it should be
<ul>
<li>sentence_1</li>
<li>sentence_2</li>
</ul>

But, to answer your question, look into margin on the ul element:
ul {margin:0}


In case you don't understand, the above answer involves the use of
a style-sheet.

By the way, while the <UL> tag requires a closing </UL>, a closing
</LI> is optional for the <LI> tag.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #3
Previously in comp.infosystems.www.authoring.html, David Ross
<no****@nowhere.not> said:
By the way, while the <UL> tag requires a closing </UL>, a closing
</LI> is optional for the <LI> tag.


Only in HTML. XHTML requires the closing tag.

--
Mark Parnell
http://www.clarkecomputers.com.au
Jul 24 '05 #4
Gazing into my crystal ball I observed Mark Parnell
<we*******@clarkecomputers.com.au> writing in
news:zn**************@markparnell.com.au:
Previously in comp.infosystems.www.authoring.html, David Ross
<no****@nowhere.not> said:
By the way, while the <UL> tag requires a closing </UL>, a closing
</LI> is optional for the <LI> tag.


Only in HTML. XHTML requires the closing tag.


Even though some are optional, I close everything anyway. It makes it a
lot easier when you're trying to debug. I also quote all attributes and
write everything in lower case, saves the Shift key.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #5

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>
1
by: Randall Sell | last post by:
OK, I am utterly stumped. The code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> 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...
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...
2
by: Shahid | last post by:
Hi, I am parsing an .HTML file that contains following example code: <div> <p class="html_preformatted" awml:style="HTML Preformatted" dir="ltr" style="text-align:left"><span...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.