Forums

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

Home Forums CSS CSS Can you help me find the bug?

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #44801
    cheries001
    Member

    http://www.thenaturalcottage.com The main body is pushing the sidebar down below and the links are moving over 20 px but I can’t find where I have it wrong. The bug is in test.css under view source.

    #135194
    Paulie_D
    Member

    You haven’t floated the main body (#main) but i think it will cause some issues if you do.

    It kind of depend on what it’s supposed to look like…and we haven’t seen that yet.

    Offhand, I think some HTML restructuring is required.

    #135206
    cheries001
    Member

    The About US tab has what the page should look like. That page works right except for the weird thing that is now happening with the links.

    #135207
    cheries001
    Member

    There is a float left on the text on the main. Would that do it?

    #135208
    cheries001
    Member

    I must have changed one setting in the css to get this glitch. But I didn’t notice it when I did it until a few hours later. I am just a web development college student so some things I am still learning.

    #135214
    wolfcry911
    Participant

    > There is a float left on the text on the main. Would that do it?
    Yes, #main needs to float in order to have the sidebar float next to it, _unless_ you put the sidebar before #main in the html

    #135218
    cheries001
    Member

    No, it isn’t that setting in the main. Can’t seem to find what is wrong here.

    #135219
    JohnMac4
    Member

    @wolfcry911 is right. I think the quote just ended up going to far.

    Your text alignment isn’t an issue. It’s the floating of the container (#main) that is causing the issue.

    #main {
    width: 702px;
    border-right: 1px solid rgb(152, 152, 152);
    margin-right: 12px;
    z-index: 1;
    float: left; /* <


    This is what they were getting at */
    }

    It also looks like it happened because you deleted the CSS file from the Home page. It’s on the about us page.

    #135224
    cheries001
    Member

    Yes that float wasn’t the issue. Still not sure what the issue was but I am switching the css file to the About Us Page stylesheet to fix the problem temporarily. Home page now works as planned.

    #135228
    wolfcry911
    Participant

    the about us page has an additional ruleset for #main that contains a float: left;

    #135239
    cheries001
    Member

    Yes, but that works well on the page. Where do I click Solved at?

    #135256
    Rohithzr
    Participant

    > Yes, but that works well on the page. Where do I click Solved at?

    just edit the post u posted and ull get it

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