Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    109
    Plugin Contributions
    0

    Default Divs acting strange!

    Hi,

    I have just re edited the front page of my website www. o r c h a r d d i r e c t.co.uk. The front page is layed out perfectly, however when going to pages such as "lamps" the centre content div shrinks to fit the content on the page and the banner expands to fill the space. This has only happened since i edited to div widths on the front page. However the odd thing is all of the divs i edited on the front page are not featured on any of the other pages on the site.

    Does any one have any suggestions as to why this is the case. Currently the left side banner is set to 150px width.

    If any one would like a copy of the css and or define main.php please ask and i will be more then happy to supply it.

    Any help will be greatly appreciated

    Many thanks

    Elliot

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Divs acting strange!

    I can't imagine a reason why this should be a problem, but I noticed that on every page where that occurs, one of your subcat images has capital letters or a hyphen in the file name. Probably coincidence, but easy enough to check out.

    Very strange problem, though.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Divs acting strange!

    Try adding the following to your stylesheet:

    #indexCategories .centerColumn {width: 99.9%;}
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Divs acting strange!

    You have no width set or specified for #navColumnOne, so being an HTML table cell it finds its own width by table rules.

    Add a width to #navColumnOne in your stylesheet.

  5. #5
    Join Date
    Aug 2007
    Posts
    109
    Plugin Contributions
    0

    Default Re: Divs acting strange!

    Hi,

    Thanks for the quick replys!


    #indexCategories .centerColumn {
    width: 99.9%;
    }

    did not acctually do anything so i tried

    #navColumnOneWrapper {

    width: 99.9%;
    }

    The code above actully expanded the gap further. Should i just be editng '#navColumnOne' without the wrapper or is it another problem causing this adverse outcome?

    Very strange.

    Look forward to hearing from you shortly.

    Many thanks

    Elliot

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Divs acting strange!

    #navColumnOne is the table cell, and that needs to be controlled. Then #navColumnOneWrapper inside it will adjust to fit.
    Add to your stylesheet

    #navColumnOne {width: 190px;}

  7. #7
    Join Date
    Aug 2007
    Posts
    109
    Plugin Contributions
    0

    Default Re: Divs acting strange!

    Hi,

    Thanks worked perfectly!

    Elliot

 

 

Similar Threads

  1. Moving Divs, please help :(
    By Inxie in forum General Questions
    Replies: 1
    Last Post: 5 Sep 2012, 12:49 AM
  2. Vertically aligning divs on homepage
    By f7creative in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Apr 2010, 05:17 PM
  3. IE 7 displays overlapping divs
    By headbump in forum General Questions
    Replies: 2
    Last Post: 17 Jun 2008, 01:03 PM
  4. Whois online acting STRANGE
    By devon310 in forum General Questions
    Replies: 3
    Last Post: 7 Feb 2007, 11:44 PM
  5. Divs vs Tables
    By camioman in forum General Questions
    Replies: 0
    Last Post: 1 Jun 2006, 12:25 PM

Posting Permissions

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