Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Setting boundaries of text_main on index


Snarg

Recommended Posts

Posted

I have osC 2.3.3. I am using Modular Front Page 1.3.6. I have also followed the directions here to set the width of my store to be larger. It is set as a fluid grid. The settings in the .css file are as follows:

.container_24 {
width: 100%;
max-width: 1300px;
margin-left: auto;
margin-right: auto;
}

What I would like to know is how do I set the text_main area of index.php to stay in it's own section. I have added some images and they are bleeding over into the right column. It ends up looking something like this:

http://img541.imageshack.us/img541/5302/maingf.jpg

I have tried to control the width of the table with no luck at all. Below is what the table code looks like:

 	 <table align="center" border="0" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<th colspan="3">Winter On The Farm</th>
</tr>

<tr>
<td><img src="images/FrozenTree.jpg" height="240" width="320"/></td>
<td><img src="images/LightedGreenhouse.jpg" height="240" width="320"/></td>
<td><img src="images/SnowTrain.jpg" height="240" width="320"/></td>
</tr>
</tbody>
</table>

Again, setting the table width has had no effect at all. Any help on this would be greatly appreciated. Thank you.

Posted

Did you add the table structure as content of TEXT_MAIN in the language file (includes/languages/english/index.php)? Or did you add this directly into index.php?

 

Is the table structure within container_24 and within grid_xy? Or did you close the grid system earlier somehow? Is the whole thing within div class="contentText"? It would help to see the page source

 

Wondering why you use a table structure at all?

 

You could use

 

<div class="front_images">
 <h2>Winter on the farm</h2>
 img1
 img2
 img3
</div>

 

and make sure you have this within the right context (grids etc)

 

You can style then everything in css as you like

  • 2 weeks later...
Posted

Sorry so long to respond. For some reason, even though I am following this topic, I'm not notified of a response. Anyway, yes, changing the width of the pictures fixed the issue. Thank you @@14steve14.

 

@@multimixer

I'm using tables because that is all I know :( Sadly, my efforts to become an HTML/CSS/PHP guru are hampered by the fact that in addition to my IT duties I also have to run all other aspects of my business. As I become more familiar with how 2.3.3 works I'll try and shift over to the new way of doing things.

Archived

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

×
×
  • Create New...