The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Alignment Problem
rtr_18
post Jul 28 2012, 04:17 AM
Post #1





Group: Members
Posts: 1
Joined: 28-July 12
Member No.: 17,508



Hi!
I've used the following tags. But I want the the second and third line of my output to be aligned with the dot on the first line.

CODE


        <ul><li><span corps="12pt" b="1" i="1">Player Name</span> <span corps="12pt">Player Age;:</span></li></ul>
        <p retrait="10" align="left"><span corps="8pt" colorRGB="1668BE" b="1">FSAvnoknv</span> <span corps="12pt" colorRGB="1668BE">vbugf.</span> <span corps="12pt" colorRGB="1668BE" b="1">FSAvnoknv</span> <span corps="12pt" colorRGB="1668BE">agadg....</span></p>
        <p retrait="10" align="left"><span style="vertical-align:top corps="14pt" colorRGB="1668BE">fasjfwenz</span> <span corps="12pt" colorRGB="1668BE" b="1">vdabnasd</span> <span corps="12pt" colorRGB="1668BE">fsafjsabfm.</span> <span corps="12pt" i="1">(sfnafhasl)</span></p>
        <p></p>




How to do this?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 28 2012, 07:46 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,732
Joined: 9-August 06
Member No.: 6



Remove the list margins and set the bulles to be inside rather than outside LI. Or define your own margins, the same for the list and the text that follows. But note that both UL and LI can have margin and/or padding. Different browsers do it differently. Because of that it's best, or at least easiest, to first nullify both and add pack what you really want.

CODE
ul,li   { margin: 0; padding: 0 }
li      { list-style-position: inside }
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 02:50 AM