Zen Cart Logo
Forums / Basic Configuration / Divs acting strange!

Divs acting strange!

Locked

Views: 1,155

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 May 2009, 9:14 AM
#1
spo0f avatar

spo0f

Zen Follower

Join Date:
Aug 2007
Posts:
109
Plugin Contributions:
0

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

12 May 2009, 10:57 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

12 May 2009, 1:53 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Divs acting strange!

Try adding the following to your stylesheet:

#indexCategories .centerColumn {width: 99.9%;}

12 May 2009, 1:58 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

12 May 2009, 6:29 PM
#5
spo0f avatar

spo0f

Zen Follower

Join Date:
Aug 2007
Posts:
109
Plugin Contributions:
0

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

13 May 2009, 3:40 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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;}

14 May 2009, 1:23 PM
#7
spo0f avatar

spo0f

Zen Follower

Join Date:
Aug 2007
Posts:
109
Plugin Contributions:
0

Re: Divs acting strange!

Hi,

Thanks worked perfectly!

Elliot