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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Blog sections of my site are going way off to the right in Firefox

    I'm at the end of my rope trying to figure out what's wrong with this. I'm creating a website for a friend who is planning to create a music CD later this year. I'm creating the website, but she is going to maintain it once it's finished, so I'm using Weebly (www.weebly.com) to build the site. Weebly has drag and drop functionality, so it will be easy for her to update it once I have the site finished. I can also add some features extremely easily without having to code it all from scratch, like a blog feature.

    Weebly does give access to CSS (one sheet for the site) and HTML for each page, so I can customize a lot of things as well. After a lot of tweaking, I was able to get most of the site done the way she wants it, but I'm having some major trouble with the alignment of the blog sections in Firefox.

    IE and Chrome are displaying the blog with no problems, but in Firefox, each page that has a blog has the blog content shoved way off to the right side of the page.

    The problem is that the code that controls the blog content is Weebly generated code. I didn't write it. So I've spent hours looking at it with Firebug and trying to see what is making it get shoved to the right side. I don't know if it's a problem with their code or if it's something that I wrote in the custom code that is interacting problematically with their code.

    If any of you more experienced coders are up to a challenge, I would love help trying to figure out what is making Firefox freak out with this blog content.

    The site is published at:

    http://bethanystarhughes.weebly.com

    The alignment on the home page seems to work fine in Firefox, IE and Chrome, so no problems there. The pages with blogs on them that are having issues are:

    News, Reflections, and Guestbook

    I obviously haven't done any other aesthetic things to these blog sections yet (i.e. making the background behind it lighter and readable), because I figured that I should get this major issue of the alignment sorted out before I dive too much more into coding the finer details.

    Through the custom CSS sheet, I should be able to override any of the automatically generated blog code from Weebly, so if I can just find the issue, it should be simple to fix it by overriding it.

    Thanks in advance to anyone who can help! Also let me know if you need any other information that you can't pull from the code that is published on the live site.
    Last edited by anmalee1; 09-14-2011 at 02:43 PM.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Your navigation block is left-floated and the blog section fails to clear the float (so it runs off the right-hand side).

    Just add clear:left; to the CSS for the table and I think you'll be fine.

    Edit: Also, because this is bugging me, you should probably change the width of #header to 989px to match your main content width. As it is, your header is always offset rather than centered and it looks funny.

    You should remove the width:100%; setting from your weebly footer because that width, plus padding, is causing (and will always cause) a horizontal scroll bar to appear at all times.

    If Weebly won't let you get at that element to style directly it then your best bet would be to use something like this in your CSS:

    Code:
    body>div{width:auto !important;}
    That's my opinion, of course, but I think it's worth the work to patch that up
    Last edited by Rowsdower!; 09-14-2011 at 01:59 PM.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • Users who have thanked Rowsdower! for this post:

    anmalee1 (09-14-2011)

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you so much! That solved the problem, and I made the other changes you suggested as well. It's nice to have an hours-long problem for me solved so quickly I still have a long way to go with learning this stuff!

    Thanks again!


  •  

    Tags for this Thread

    Posting Permissions

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