3 replies [Last post]
obsidian
Offline
Enthusiast
South Carolina
Last seen: 14 years 1 week ago
South Carolina
Joined: 2004-08-15
Posts: 136
Points: 0

Hey, all, I'm fairly new to CSS, but I've learned LOADS in the last few months. I have what I hope is a simple question. Actually, this may refer more to the HTML than to the CSS, but when I do a navbar using an unordered list, I seem to have an extra   for every line break in my code. Is there a way to bump all the links together without the space between them and still keep my source spaced on different lines?

Thanks in advance!

You can't win, you can't lose, you can't break even. You can't even get out of the game!

The Finch
Offline
Enthusiast
Cincinnati
Last seen: 16 years 12 weeks ago
Cincinnati
Timezone: GMT-5
Joined: 2004-08-01
Posts: 65
Points: 0

Inline navbar questions

Quote:
Is there a way to bump all the links together without the space between them and still keep my source spaced on different lines?

I'm pretty sure the answer is no. IE likes to show line breaks for some reason.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 31 weeks 3 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

Inline navbar questions

I thought it should be ok. I don't think IE displays carriage returns (line breaks), so as long as there is no spaces, the text is just one lines, it should be ok.

Verschwindende wrote:
  • CSS doesn't make pies

obsidian
Offline
Enthusiast
South Carolina
Last seen: 14 years 1 week ago
South Carolina
Joined: 2004-08-15
Posts: 136
Points: 0

Inline navbar questions

Thanks!

I totally agree about IE wanting to show linebreaks for some reason, but I've noticed when it comes to trying to make a horizontal navbar from an unordered list, i end up having to put all my <li> tags on the same line to get them to display properly on my site. I know I'm probably getting picky, but I like to break my code up so it's easier to read. However, when I separate the <li> tags onto different lines, I end up having a &nbsp; show up representing the line break in Firefox, too. Any suggestions???

TIA

You can't win, you can't lose, you can't break even. You can't even get out of the game!