Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Box_width


joongpark

Recommended Posts

Posted

BOX_WIDTH is defined in application_top.php

 

NOTE: This controls both the left and right side.

Posted

I changed the value but size of the box is not changing....

 

Do I need to change something else or is this because of something else?

Posted

Keep in mind a width is the minimum width.

 

The width is determined by size of text and images, then by the size of the settings in the tags.

 

Clear the cache, close the browsers, etc. :D

  • 2 weeks later...
Posted

Thank you so much Linda for letting us know how to change the width of the columns.

 

Do you or anybody else know how to change the space between the infoboxes to make the boxes appear spaced farther apart.

 

 

Thank you,

 

Joe

Posted

What you need to find on the key pages like default.php is the setting for the cellpadding and change it to larger or smaller.

 

For the left column ...

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

 

Then at the bottom for the right column ...

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

 

Keep in mind that the cellpadding is also effecting the spacing left to right and not just above.

 

You could be more precise on the extra spacing by adding in a spacer between the boxes ... :D

Posted
thanks Linda that worked.

 

Santa left you a little something in your paypal stocking :)

 

Joe

 

Thanks Joe ... Santa is a jolly good elf! :xmas:

Posted

Hi Linda.

Are you still working on that box style project?

Can you let me know what stage you are in...thanks.

Posted

The one using Thema? or the one controlling the columns? or the one using two box definitions? :shock:

 

I have a few box projects I am working on :D

Posted

Yes working on that one. You can peek over at:

 

http://www.thewebmakerscorner.com/freegv

 

Each box has it's own stylesheet. Other than that, they run through the same box builder.

 

This allows for a lot of flexibility with just changes to the stylesheet itself.

 

Ignore any messies you might see while this is being worked on ... and if broke ... wait a few minutes and try a refresh ... :shock:

Posted

I am working on the *master* stylesheets a box might need and making sure that everything is now designed based on Thema with just a *few* ittsy bittsy alterations from moi ... :shock:

 

Okay so I rewrote the themaboxes.php to be more versitile ... and added in the unique stylesheet peices for the boxes and made them flexilble enough that if you don't want one seperate stylesheet for each box, you could share stylesheets between them when they are to have the same look.

 

And the buttons are now thema oriented and language oriented ... You come up with the buttons ... I am just making it work.

 

The new buttons being designed now are really nice for this as well.

 

I will also have an optional footer definition for the boxes that can be called seperately and have its own settings within the given stylesheet being used.

 

And, if a box isn't using unique stylesheets, then they can be set to default to the normal stylesheet.

 

Basically it's stick a peice of code in the box at the top and a peice of code at the bottom and voila ... unique box ... with all the current features of the existing boxes for headers, corners, etc.

 

And, the header and footer naturally would be included in this with logo and My Account, Shopping Cart and Checkout images as well.

 

Debating on the left and right columns as you could set those up for occaisions where a thema looks better without a right column or left column for a holiday or something.

 

Then the standard modules with that utilize the boxes.php which is now the themaboxes.php also can use this new method to provide them with the new look as well.

 

So this covers just a few of the high points ... :D

 

What I like is that there is not a lot of coding involved here for you guys, just define your new box stylesheets to look the way you want the boxes to look and they will automatically flow with the code.

 

Add headers, text, links or hovers and don't like the colors in that box or the box colors itself? Just edit its style sheet and you do not mess up anything else in the site.

 

Want to utilize just one box with images and not put them in all boxes? Just edit the stylesheets.

 

I am no magician when it comes to stylesheets, but for those of you who are, you are really going to like this. 8)

Posted

Holy...Thanks for taking your time to explain all that. It looks like it's going to make alot of people.

 

With all the buttons in the development and your box style thema, finally many people will be able to get out of that Oscommerce default look.

 

Thanks for all the nice work and help you always provide.

Posted

Credit goes to Peter ... he started the thema concept ... I am just taking it to the next level ... 8)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...