Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Body Tag


dekh

Recommended Posts

Posted

Hi all, isn't it fun to work on Sunday :)

 

Out of the box the body tag looks like:

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

 

Is all that necessary?

 

Would it be easier just to have ?:

 

<body>

 

The stylesheet as installed has:

 

BODY {

background: #ffffff;

color: #000000;

margin: 0px;

}

 

Does that not have it covered? (Although I'd prefer body {} )

 

 

My current body style looks like:

 

body {

color: #294E56;

font-family: "Century Gothic", "Times New Roman", serif;

font-size: 62.5%;

margin: 0;

padding: 0;

background-color: #FBF9E2;

}

 

 

Additionally it would be helpful to move it into the header.php file would this cause a problem?

 

I'm looking to remove as much supurfluous code as possible. I also have my eye on all the <table> tags...

 

Thanks in advance for your help.

Snatch the pebble from my hand.

 

Many thanks to: Fixed Width Site with CSS, Remove Entire Left or Right Side Columns

Posted

The details are there in order for people to change the look of there site.

 

Especially the stylesheet! You CAN change it to specify your own site.

Remember, OSCommerce is for people to setup a shop with perhaps a little less HTML knowledge than others. ;)

 

<Table> tags are all used by the stylesheet as well. If you have enough knowledge (and are not likely to get lost on confused editting them) go right ahead. Although I wouldnt recommend it because they are everywhere... as well as in PHP files that querie the database and that have funtions etc.

 

If you do decide to change such thing, you WILL have a lot more work for yourself when trying to install addons/contributions.

 

Moving it to the header can work, but the stylesheet has loads of settings in it so wouldstill need to be linked as well.

 

Remember to backup any changes you make, incase it all goes belly up!

Posted

Hi,

 

Not really sure I understand your answer, but my question was a bit wordy....

 

I'll try to explain a bit better...

 

As the style of the <body> is defined in stylesheet.css are there any issues with removing :

 

marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"

 

from the body tag in the pages?

 

Cheers

Snatch the pebble from my hand.

 

Many thanks to: Fixed Width Site with CSS, Remove Entire Left or Right Side Columns

Archived

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

×
×
  • Create New...