Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-22-2009, 03:41 PM
  #1
Franz
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 5
iTrader: (0)
Franz is an unknown quantity at this point
Arrow UL with custom list images - making text stayaligned

Hello!

I use this CSS statement:
ul {list-style-image:url(bullet.gif);list-style-position:inside;}

The problem is that the text that is longer than a single line ends up being continued under the bullet.gif graphic.

Example:
o Long text element
continued here

How can I make the text say vertically aligned with the first line's first letter?

Example:
o Long text element
__continued here (consider the _ as blank spaces)
Franz is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-22-2009, 04:18 PM
  #2
Pegasus
Mama Hen
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 22,370
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
Try changing the list-style-position to outside
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-22-2009, 06:17 PM
  #3
Franz
Novice (Level 1)
 
Join Date: Nov 2009
Posts: 5
iTrader: (0)
Franz is an unknown quantity at this point
I set it to inside because if set to outside the bullets 'escape' out of the TD they are in.
Franz is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 12-23-2009, 09:46 AM
  #4
sammyP
Fighter (Level 4)
 
Join Date: Jul 2007
Posts: 37
iTrader: (0)
sammyP is an unknown quantity at this point
I think, the only thing to do is set to outside and set a left margin to the width of the image? But still CSS doesnt define exactly how the image is rendered ( I.e. how much space between the <li> box and the image mainly.), so you may get different results.

CSS doesnt actually define how the marker/bullet is formatted in terms of the CSS postioning model, for either value, of inside or outside, which is annoying.
sammyP is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 12-23-2009, 12:08 PM
  #5
cascading-style
Paladin (Level 15)
 
cascading-style's Avatar
 
Join Date: Dec 2009
Posts: 474
iTrader: (0)
cascading-style will become famous soon enough
Here is a link to a W3Schools example where they show you the 'list-style-image:' CSS and how to use it. You can read the tutorial in the link below it.

http://www.w3schools.com/Css/tryit.a...st-style-image

http://www.w3schools.com/Css/pr_list-style-image.asp
cascading-style is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 08:54 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.