Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2012
    Thanked 0 Times in 0 Posts

    css or div issue


    I need some help with some css, I think somewhere in my ff.css stylesheet is a issue making my website scroll to the right

    It is fine in Google Chrome and IE I think but in Firefox on the home page and other pages, there is a scroll bar where have to scroll right but nothing is there

    Is it a css issue or a div issue where I have one too many somewhere or not enough

    The website is www.irhwebsites.co.uk

    I have tried fixing it using inspect element in FF but can't seem to sort it

    Kind regards


  2. AdSlot6
  3. #2
    Senior Coder
    Join Date
    Sep 2010
    Thanked 275 Times in 275 Posts
    A bit of both. Try changing your body css from

    margin: 0; to margin: 0 auto;

    But you have improperly nested div tags and unclosed divs. For such a simple page you shouldn't need all those css sheets, and the body should be the same for all of them.

    The best tool I've found for sorting out div problems is to put in the bottommost style statement

    div {border: 1px solid magenta}

    then all the divs will light up like a Christmas tree
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.

    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  4. #3
    Regular Coder
    Join Date
    Apr 2012
    Thanked 0 Times in 0 Posts
    Hi DrDos

    Thank you for the reply

    I changed the coding in the css to what you said in both style.css and ff.css and also added div {border: 1px solid magenta} to style.css

    and weirdly it sorts the issue in FF but as soon as I comment it out, it goes wrong again in FF

    Don't get it


Posting Permissions

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