Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need to add border around main text on index page


DeadDingo

Recommended Posts

In the main index page, I have added some text and pictures (instead of where the welcome guest message used to be)

 

Is there a way to add a border around that bit to make it fit in with the rest of my site?

 

Can I add it into the /includes/languages/english/index.php file in the

 

define('TEXT_MAIN', ' blah blah blah' area?

 

I already have a couple of tables in that area and when I try to add a new table at the start (ending at the end) to give it a border, the page breaks.

 

 

Can anyone give any help.

 

 

Cheers

Link to comment
Share on other sites

Just change in index.php the code from

 

<td class="main"><?php echo TEXT_MAIN; ?></td>

 

 

to

 

 

<td class="main">
<table border="1" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table>
</td>

Link to comment
Share on other sites

Thanks for the very quick reply Stu. I added the

bordercolor="#cdae42"

to make it the correct colour. But now it is thicker than the rest of the borders. How can I make it the same 1px thickness?

 

 

Thanks again for the help

Link to comment
Share on other sites

I would change the coding suggested above from

 

<td class="main">
<table border="1" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table>
</td>

 

to

 

<td>
<table class="table_border" width="100%" cellspacing="0" cellpadding="0"><tr><td><?php echo TEXT_MAIN; ?></td></tr></table>
</td>

 

then in stylesheet.css

 

add something like this:

 

TABLE.table_border {

border: 1px;

border-style: solid;

border-color: #b6b7cb;

border-spacing: 1px;

}

 

See if that works.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...