dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: text indent

  1. #1
    Join Date
    Apr 2012
    Posts
    113

    text indent

    I am trying to indent text, but notice that with a div, it puts a new line below, and a span, it does not work at all. here is my code:

    Code:
    <div style="text-indent:15px;">Link1</div><br />
    <div style="text-indent:15px;">Link2</div><br />
    <div style="text-indent:15px;">Link3</div>

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    It looks like you're attempting to code a list of links. It should be marked up as an unordered list (ul) and styled accordingly.

  3. #3
    Join Date
    Apr 2012
    Posts
    113
    EDIT:
    How do I change the indent amount though?

  4. #4
    Join Date
    Feb 2008
    Location
    NW Washington State
    Posts
    1,856
    Here is one example of an <ul> using indented text... a class using padding:
    http://www.olympicdiscoverytrail.com/trail_maps.html
    view source code to see how class is applied to anchors <a......>.
    Code:
    .pad_menu {
    	padding-left: 20px;
    }
    Eye for Video

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles