If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / consistent size for content areas...

consistent size for content areas...

Locked

Started by khopek on 6 Sep 2006, 11:54 PM · Views: 2,877

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
6 Sep 2006, 11:54 PM
#1
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

consistent size for content areas...

I can't seem to find an answer for this...

On my main page and also on Product Info pages how do I set the width content area so that it will remain consistent throughout the site. Lets say, if I wanted it to be even with the gray bar at the top of my page?

For example, On one product with a short description, the table is less wide, and the space between my review, tell a friend, and add to cart buttons is small.

on another Product Info page there is a larger description therefore the table is wider and my buttons get spaced far apart.

I would like it to be the same width no matter what. I would also prefer that the buttons be evenly spaced.

I attached a couple pictures so hopefully it will help.

7 Sep 2006, 3:14 PM
#2
kobra avatar

kobra

Black Belt

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

Re: consistent size for content areas...

Please Post the settings in your admin > config > all listing panel...

Zen-Venom Get Bitten

7 Sep 2006, 3:25 PM
#3
kobra avatar

kobra

Black Belt

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

Re: consistent size for content areas...

BTW: Also post the Zen Cart version and any mods that you have done.

Zen-Venom Get Bitten

7 Sep 2006, 6:37 PM
#4
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

kobra:

Please Post the settings in your admin > config > all listing panel...

Display Product Image 1102
Display Product Quantity 1202 Info
Display Product Buy Now Button 1300 Info
Display Product Name 2101 Info
Display Product Model 2201 Info
Display Product Manufacturer Name 2302 Info
Display Product Price 2402 Info
Display Product Weight 2502 Info
Display Product Date Added 0 Info
Display Product Description 1 Info
Display Product Display - Default Sort Order 1 Info
Default Products All Group ID 23 Info
Display Multiple Products Qty Box Status
and Set Button Location 0

I'm using zencart version 1.3.0.2 and the nightfall template
I also installed the column layout grid, image handler 2, and the login box thing and....I think that's it. I don't know if that's what you were looking for.

13 Sep 2006, 6:25 PM
#5
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

no one has anything for me?:ohmy:

13 Sep 2006, 7:09 PM
#6
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: consistent size for content areas...

I went to your site and you're messing with it. Can you undo whatever you did (so that it replicates the error you mentioned in your first post), and I can get a fix for you?

13 Sep 2006, 8:18 PM
#7
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

yeah i sure can... it should be back to how it was when i posted right about now...

sorry. i just get inpatient, not to mention the fact i'm bored to death at work right now, so i thought i'd mess with it.

13 Sep 2006, 9:05 PM
#8
zforrest avatar

zforrest

New Zenner

Join Date:
Jun 2006
Location:
Austin, TX
Posts:
85
Plugin Contributions:
0

Re: consistent size for content areas...

I think what's happening has to do with the text in your descriptions. Try putting in some fake text into the jean product and see if that doesn't straighten it out.

If that's the case, you can either put in more complete text or write some sort of css hack.

13 Sep 2006, 9:12 PM
#9
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

zforrest:

I think what's happening has to do with the text in your descriptions. Try putting in some fake text into the jean product and see if that doesn't straighten it out.

If that's the case, you can either put in more complete text or write some sort of css hack.

well, others were telling me it's because there are tables in there and aren't supposed to be. so i got bored and went through the php file and just deleted any code referencing tables. it seem to work ok, except i can't for the life of me get the model # and attributes to move up under the description.

i removed all the <br class="clear both"> that i thought would affect it, and no luck!

the name, price, and description, all are where i want it, but the model# and attributes (if there is one for that product) stay under the main picture. OR the "choose one" text for the attributes will be under the description, but the actual box wont.

HELP

i've been messing with this thing for hours!

13 Sep 2006, 9:26 PM
#10
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: consistent size for content areas...

It's probably in the css...

For example, the model box is using this css tag:

<ul id="productDetailsList" class="floatingBox back">

If you look in your css, there is this code:

.back {
float:left
}

That is what is telling the model number box to be like that.

Now, you don't want to remove that from your stylesheet, because a lot of other things use that style. So I would just remove 'back' from here: <ul id="productDetailsList" class="floatingBox back"> in tpl_products_info_display.php. Or you can give that box its own class, like "modelNumberBox", so that you can add more styles to if you like.

13 Sep 2006, 9:30 PM
#11
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

jettrue:

It's probably in the css...

For example, the model box is using this css tag:

<ul id="productDetailsList" class="floatingBox back">

If you look in your css, there is this code:

.back {
float:left
}

That is what is telling the model number box to be like that.

Now, you don't want to remove that from your stylesheet, because a lot of other things use that style. So I would just remove 'back' from here: <ul id="productDetailsList" class="floatingBox back"> in tpl_products_info_display.php. Or you can give that box its own class, like "modelNumberBox", so that you can add more styles to if you like.

SWEET! i'm going to try that right now....

13 Sep 2006, 9:33 PM
#12
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

that worked! the model # and attributed move up. It's just a little too far over to the left though...

13 Sep 2006, 9:47 PM
#13
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

SWEET! that worked, however it is a little too far over the left. How do I change this.

sorry for all the question:smile: i've just been stuck on this page for ever.

13 Sep 2006, 10:19 PM
#14
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: consistent size for content areas...

khopek:

SWEET! that worked, however it is a little too far over the left. How do I change this.

sorry for all the question:smile: i've just been stuck on this page for ever.

You really need to give it its own style tag like I mentioned, so you can style that box with the css.

I'd change class="floatingBox"

to class="modelNumberBox".

Then I'd open up my stylsheet, and add:
.modelNumberBox {
width:100%;
margin-left:5px}

That'll do it! :-)

13 Sep 2006, 10:38 PM
#15
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

jettrue:

You really need to give it its own style tag like I mentioned, so you can style that box with the css.

I'd change class="floatingBox"

to class="modelNumberBox".

Then I'd open up my stylsheet, and add:
.modelNumberBox {
width:100%;
margin-left:5px}

That'll do it! :-)

ok so i can't get it to move right a tiny bit. it's the bullet points that are running into the picture. i want those to be even with the rest of the text. otherwise it's going good!

13 Sep 2006, 11:11 PM
#16
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: consistent size for content areas...

khopek:

ok so i can't get it to move right a tiny bit. it's the bullet points that are running into the picture. i want those to be even with the rest of the text. otherwise it's going good!

Did you add that to your stylesheet.css? I dont' see:
.modelNumberBox {
width:100%;
margin-left:5px}

in your css at all. Where did you add it?

13 Sep 2006, 11:43 PM
#18
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

jettrue:

Actually try this instead:

.modelNumberBox li{
width:100%;
margin-left:10px}

yeah i did add it, right above where .floatbox is

and i tried changing the margin to various things and didn't work.

let me check, i've been having issues... such as my background colors changing when i never touched them, and stuff disappearing.

14 Sep 2006, 6:35 PM
#20
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: consistent size for content areas...

same here. i did that just to see something and never changed it back....