Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » ul in div problem

ul in div problem

Reply
  #1 (permalink)  
Old 06-26-09, 06:13 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 648
Thanks: 0
Thanked 0 Times in 0 Posts
ul in div problem

Hi there..

i got a <ul> inside a div. But the dots are placed outside the div..

my html looks like:
HTML Code:
<div id="right-text">
<ul>
<li>Wij optimaliseren uw business</li>
<li>Innovatief mt proven technologie</li>
<li>Zeer concurrerende tarieven</li>
<li>Uw processen zijn ins uitgangspunt</li>
<li>Wij excellereren in onze specialismen</li>
<li>Uw back-office is onze core business</li>
</ul>
</div>
my CSS looks like:

Code:
#right-text { width: 257px; float: left; margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; border:1px solid #ff00ff; }
			
				#right-text ul { display: inherit; list-style: disc; margin:0px 0px 0px 0px; padding: 0px 0px 0px 0px; }
				#right-text ul li { margin:0px 0px 0px 0px; padding: 0px 0px 0px 0px; font-size: 7pt; color: #636161; }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-27-09, 03:32 PM
logical logical is offline
New Member
 
Join Date: Sep 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
It's ok in firefox.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-28-09, 10:10 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 2,726
Thanks: 0
Thanked 32 Times in 32 Posts
This will put the dots inside the div.

But you may want to re-think this because the display looks a bit different in IE then in FF.
HTML Code:
<style>
#right-text { width: 257px; float: left; margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; border:1px solid #ff00ff; }
#right-text ul { display: inherit; list-style: disc; margin:0px 0px 0px 20px; padding: 0px 0px 0px 0px; }            
#right-text ul li { margin:0px 0px 0px 0px; padding: 0px 0px 0px 0px; font-size: 7pt; color: #636161; }
</style>
<div id="right-text">
<ul>
<li>Wij optimaliseren uw business</li>
<li>Innovatief mt proven technologie</li>
<li>Zeer concurrerende tarieven</li>
<li>Uw processen zijn ins uitgangspunt</li>
<li>Wij excellereren in onze specialismen</li>
<li>Uw back-office is onze core business</li>
</ul>
</div>
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Superfish jquery menu problems with modification transcend2005 CSS 2 03-25-09 01:30 AM
css problem with the scroll bar crazy.works CSS 0 11-04-08 05:34 PM
Website not showing for all IE users xavier039 CSS 7 08-14-08 05:58 AM
css help (very simple i think) jcoxy4 CSS 2 06-11-07 02:32 PM
menu Issues? benq JavaScript 3 02-12-07 06:12 PM


All times are GMT -5. The time now is 06:39 PM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.