Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing margin attributes


Jack_mcs

Recommended Posts

In the default stylesheet.css file there is

BODY { background: #ffffff;  color: #000000;  margin: 0px;
}

 

and then in the index.php file there is

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

 

Isn't the margin attributes in the second one (top, bottom, left & right) just duplicating what's in the first one (margin:)? They cause validation errors so I want to remove them but am hesitant to do since I am not sure what other problems it may cause.

 

Also, does anyone know what I would place in the css file to replace the marginheight and marginwidth attributes?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...