Jump to content

Setting background color and preventing scrolling in table


9999

Recommended Posts

This is more of an HTML problem...but here is your answer.

 

echo'<table bgcolor='black' style="width:325px; height:800px; padding:0px; border:0px"><tr><td>';

 

To get it to stop scrolling, I just adjusted the height.

Since the OP is already using CSS in the "style" attribute, he should continue to use that to set the background color:

<?php
echo '<table style="background-color:black;overflow:hidden;width:325px; height:160px; padding:0px; border:0px"><tr><td>';
?>

 

The "overflow:hidden" should keep the scrollbars from appearing.

 

Now I will move this to the CSS forum where it belongs...

 

Ken

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.