Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / CSS div problems with my homepage

CSS div problems with my homepage

Locked

Views: 1,870

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Jun 2008, 12:41 AM
#1
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

CSS div problems with my homepage

I'm almost finished styling my homepage but there's a problem I can't seem to solve no matter what. Seems that if you go to:
http://reggae.esolutions.net/~granolag/store/
you'll see a list of flavors that is below the 9 featured items and I can't seem to get it to line up to the right instead of the bottom. It's supposed to look like this:
http://reggae.esolutions.net/~granolag/index.html

I checked my div's and they seem lined up OK in the code. So is there so margin I'm forgetting to delete?

10 Jun 2008, 3:58 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS div problems with my homepage

In your master css find and alter this from left as it is now to the following

#flavors	{
	width: 190px;
	float: right;
	position: relative;
}

This only aligns this to the right and does not resemble your html page at all

10 Jun 2008, 11:20 PM
#3
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

Re: CSS div problems with my homepage

You mean make float:left; into float:right; Correct?

It's definitely better but the #flavors div is still too far down the bottom.

11 Jun 2008, 12:47 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS div problems with my homepage

It's definitely better but the #flavors div is still too far down the bottom.
#flavors is not a default div and I do not know where you have placed it??

I would find where you have it and reorder it in that file to be where you want it

13 Jun 2008, 9:48 PM
#5
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

Re: CSS div problems with my homepage

Actually, I figured out the problem. I needed to wrap my div on left inside of another div. Once i did that and gave it proper width and floats, it worked.