Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Cannot seem to margin right side properly.

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #174825
    ninetail
    Participant

    Hey everyone. Thank you for your time in advance.

    The site its regarding is http://www.celicaracing.no

    And as you can see I cannot seem to margin the right side properly like the left side.
    Its sticking out.

    What am I doing wrong?

    I havent been doing CSS in years so im rusty as can be.
    Thank you again for helping a newbie. :-)

    [MOD EDIT – Codedump Removed]

    #174827
    Paulie_D
    Member

    Please no codedumps.

    #174828
    Paulie_D
    Member

    First thing you will hear (after the above) is…

    Don’t do page layout with tables

    http://learnlayout.com

    Then…you are using elements like <center> which are no longer valid HTML under the 5 spec.

    As for the navigation

    #navigation {
    clear: left;
    /* float: left; */ /* not required*/
    /* width: 100%; */ /* not required */
    background: #e4e4e4 0 25% repeat;
    font-family: Trebuchet MS, Helvetica, sans-serif;
    border-bottom: 1px solid #000000;
    overflow: hidden;
    margin-left: 2px;
    margin-right: 2px;
    }
    

    Finally, the cell is the right width, it just that you are using a background image as a ‘border’ making it look too narrow.

    #174830
    ninetail
    Participant

    Oh snap sorry about that.

    Guess I will have to update myself a bit though it seems, haha.

    But was hoping for a temporary fix, guess I could redo the layout afterwards when I have more time on my hands.

    edit
    Thank you for that link btw! Looks very informative.

    #174832
    ninetail
    Participant

    I tried removing Width: but that removed the centering and style.
    But removing both Width and Float helped it seems.

    I didnt copy paste the source, which would’ve helped since both where skipped out, but I noticed you wrote Float was required so tried with that first.

    But everything seems to look better now. Thank you so much for your time and informative suggestions! I will be sure to read that link. Looks very interesting. Problem is I dont have that much time to study as I did. Thanks again! :-)

    #174835
    Paulie_D
    Member

    but I noticed you wrote Float was required so tried with that first.

    Sorry that was my error..is was of course, NOT required.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.