Results 1 to 2 of 2

Thread: wierd text thing on my site... any direction????

  1. #1
    Join Date
    Apr 2009
    Posts
    88

    wierd text thing on my site... any direction????

    If you look at the address on my website under the properties link.....

    the Austin, Texas line juts out to the left of all the other text on the page.

    Is it doing the same on your browser when you look at it?

    Could you tell me what is wrong in the code, that is making it do this?


    Bear in mind, that I am still teaching myself css and html on the fly... so you may see some caveman like code in there. If there's anything that is obviously wrong, feel free to let me know.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    It's because of the text-indent: 20px; in the body style; it only works for the first line and you have a <br /> tag before the "Austin, Texas 78751" on a second line.

    You can cure the problem by deleting the <br /> tag so that it's all on one line or somehow getting rid of the text-indent for that line, perhaps a class with text-indent: 0px;

    It's always a risk putting styles like that in the body style because they will apply everywhere, which may not be what you want. The alternative is to make a class for text-indent and use the class for a div or p tags where you want it.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Replies: 1
    Last Post: 25 Mar 2008, 07:31 PM
  2. 4 Steps to Attract Site Visitors to Image Gallery
    By useful in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 29 Aug 2006, 03:04 AM

Posting Permissions

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