Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Can any body solve a css issue using a list?
Old 01-15-2009, 07:12 PM Can any body solve a css issue using a list?
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 310
Name: Jason Eyermann
Location: england bristol
Trades: 0
Can anybody solve what I thought was a simple issue. I have some generated dynamic code (html shown below) that depending on what option is chosen there may not be a value between some of the <li></li> tags. Safari and firefox closes this up as if there was no text there, which is what I want. But in IE6 (i've not checked IE7 yet) the space remains there.
In IE6 it looks like:
text 1


text 2

but I need it to be

text 1
text 2

I've been trying to figure out how. I think I've tried everything. Thanks people.

Code:
<style>
ul {
	list-style: none;
}

li {
	padding: 0;
}
</style>
Code:
<ul>
	<li>Text 01</li>
	<li></li>
	<li></li>
	<li>text 02</li>
</ul>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by jason_bristol; 01-15-2009 at 07:13 PM..
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
 
Register now for full access!
Old 01-15-2009, 08:15 PM Re: Can any body solve a css issue using a list?
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Since you're generating the text dynamically couldn't you generate the html dynamically as well?

That way you add logic to only generate the list items if there's text to fill between.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-15-2009, 08:20 PM Re: Can any body solve a css issue using a list?
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Did you check for multiple <p> tags or <br> tags? That seems to be the issue, but maybe not. Double check your html for <p> or <br> tags.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 01-16-2009, 02:01 PM Re: Can any body solve a css issue using a list?
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 310
Name: Jason Eyermann
Location: england bristol
Trades: 0
Quote:
Originally Posted by vangogh View Post
Since you're generating the text dynamically couldn't you generate the html dynamically as well?

That way you add logic to only generate the list items if there's text to fill between.
I took your advice and just used
PHP Code:
<?php
if ($value != "") {
?>
<li>
<?php
}
?>

etc
ta
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
Old 01-19-2009, 09:29 PM Re: Can any body solve a css issue using a list?
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I take it that worked. Glad to help if I did indeed help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Can any body solve a css issue using a list?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.57297 seconds with 12 queries