Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Tab Problems

  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Tab Problems

    On my website I am using this blank image that is about 27 pixels wide and 8 tall and I put this at the start of my paragraphs, but it seems unnecessary. Is there a better way, without using images, to have an approximately 27 pixels tab?

    http://www.geocities.com/chamith7 if you want to see the tabs. My image is only 56 bytes, but I figure I'm being stupid about the whole thing.

  • #2
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Indeed:
    Code:
    p { text-indent: 27px; }
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #3
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,695
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there chamith7,

    me' has given you
    the skeletal answer. Just in case you are not sure
    what to do with it put this between the <head> tags
    Code:
    <style type="text/css">
    <!--
    p
       {
        text-indent:27px;
       }
    //-->
    </style>
    and this is how your first two paragraphs should look
    Code:
    <b>THE HOMEWORK INCIDENT - 4 January 2004</b>
    <p>I had a lot of homework to do, so I went to my desk and got out 
    a few pencils and my school work. I sat at my desk, for what 
    seemed like an hour, just moving my gaze from my pencils, 
    to the paper, and back to the pencils. It was getting late, so I 
    decided that I had better just get to bed.</p><br /><br />
    
    <b>THE THINKING ABOUT SCHOOL INCIDENT - 3 January 2004</b>
    <p>I was thinking about how I have school next week. Then I thought, 
    <I>I don't really like school</I>. And then I realized that I also have 
    school the week after that. The point I'm trying to make is this, 
    school happens.</p><br /><br />
    cthead

  • #4
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But without the <br /> tags between the paragraphs. Also, consider using a header tag like <h6> instead of the <b> tags you're currently using to the same effect.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #5
    New Coder
    Join Date
    Jan 2004
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks a lot for the help. I guess these are called stylesheets, and I don't have any familiarity with them, so can you tell me what to add to that code so that the paragraphs are in the verdana font and size 10?

  • #6
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Simply add font: 10pt verdana inside the { and } in your current code.

    This is something called CSS, and it rocks. Learn it soon.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #7
    New to the CF scene
    Join Date
    Jan 2004
    Location
    Jackson, Georgia
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use tables or Cascading style sheets.
    Designers Toolz Admin


  •  

    Posting Permissions

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