Unwanted indentation

Discussion in 'HTML' started by Daan, Dec 9, 2003.

  1. Daan

    Daan Guest

    On the following page, I have trouble with some unwanted indentation.
    Please look at the box "Login" at the left side of the website. It has
    three lines of text, of which the last two are indented a little. I
    can't figure out why this indentation occurs but I *do* want to get rid
    of it! Removing the <strong>- or <a>-element from the text seems to make
    the indentation disappear, but this is of course not what I want. I've
    tested the site with IE6 and Firebird 0.7.

    Website: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index.html
    Style: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index_files/style.css

    Can anyone help me out here? Thanks in advance.

    --
    Daan Stolp
    Daan, Dec 9, 2003
    #1
    1. Advertising

  2. Daan

    Steve Pugh Guest

    "Daan" <> wrote:

    >On the following page, I have trouble with some unwanted indentation.
    >Please look at the box "Login" at the left side of the website. It has
    >three lines of text, of which the last two are indented a little. I
    >can't figure out why this indentation occurs but I *do* want to get rid
    >of it! Removing the <strong>- or <a>-element from the text seems to make
    >the indentation disappear, but this is of course not what I want. I've
    >tested the site with IE6 and Firebird 0.7.
    >
    >Website: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index.html
    >Style: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index_files/style.css


    Your styles contain:
    ..section * {
    padding-left: 4px;
    padding-right: 4px;
    }

    So that's 4px padding-left inside each and every element within the
    ..section element. In this case that means 4px padding-left inside the
    <p> and then _another_ 4px padding-left inside the <strong> and <a>.
    Hence the extra indent.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
    Steve Pugh, Dec 9, 2003
    #2
    1. Advertising

  3. Daan

    Daan Guest

    >> On the following page, I have trouble with some unwanted indentation.
    >> Please look at the box "Login" at the left side of the website. It
    >> has three lines of text, of which the last two are indented a
    >> little. I can't figure out why this indentation occurs but I *do*
    >> want to get rid of it! Removing the <strong>- or <a>-element from
    >> the text seems to make the indentation disappear, but this is of
    >> course not what I want. I've tested the site with IE6 and Firebird
    >> 0.7.
    >>
    >> Website: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index.html
    >> Style: http://wwwhome.cs.utwente.nl/~stolp/cpl2/index_files/style.css

    >
    > Your styles contain:
    > .section * {
    > padding-left: 4px;
    > padding-right: 4px;
    > }
    >
    > So that's 4px padding-left inside each and every element within the
    > .section element. In this case that means 4px padding-left inside the
    > <p> and then _another_ 4px padding-left inside the <strong> and <a>.
    > Hence the extra indent.


    Thanks Steve, I've rewritten part of my stylesheet, now it works
    perfectly! (Not in the on line version btw, I've just posted the site
    there so you guys could check it out.)

    --
    Daan Stolp
    Daan, Dec 9, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BobLeavitt

    .NET 1.1 created unwanted logon screen

    BobLeavitt, Jun 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    664
    Mark Broadbent
    Jun 21, 2005
  2. Kevin Chandler

    Unwanted Refresh/Redraw

    Kevin Chandler, Jan 29, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,170
    Charlie Nilsson [MSFT]
    Jan 29, 2004
  3. sanjay patil via .NET 247

    Previous(Unwanted) event handled when page refreshed by key F5

    sanjay patil via .NET 247, Apr 27, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    388
    sanjay patil via .NET 247
    Apr 27, 2004
  4. DC Gringo

    panel inserted unwanted div tag

    DC Gringo, Sep 23, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    418
    Alan Ferrandiz [MCT]
    Sep 23, 2004
  5. Jesse B.
    Replies:
    2
    Views:
    181
    Josh Cheek
    Mar 27, 2010
Loading...

Share This Page