Forum Moderators: not2easy

Message Too Old, No Replies

table with negative

table with negative

         

oldworldcharms

11:05 pm on Jun 21, 2005 (gmt 0)

10+ Year Member



My breadcrumb is right under the header bar but there are a few pages on my site that I don't want the breadcrumb but when I remove the breadcrumb code it leaves an empty table which is too much space. Is there a table with a negative attribute?

thanks
Elizabeth

Span

12:02 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,
if that table or the row or cells in it have paddings or margins you could override those with the same selectors and the value set to zero. An empty table should only take a few pixels or no height at all.

oldworldcharms

12:43 am on Jun 22, 2005 (gmt 0)

10+ Year Member



The breadcrumb entry has padding top and padding bottom. Right now I changed the class of the table but I had to put another entry in the css file. Is there a better way. I think my css file is getting too big. I wonder if Can you explain this a little more.

thanks

SuzyUK

7:55 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could make that table row "display: none;", and if it's only certain pages you don't want it to display on, you could target those with an ID on the <body> element as well as the table row itself would mean you can "toggle" your preference

e.g.

CSS:
#nocrumbs #breadcrumb {display: none;}

HTML:
<body id="nocrumbs">

<table>
<tr id ="header"><td>header row</td></tr>
<tr id="breadcrumb"><td>breadcrumb row</td></tr>
<tr id="content"><td>content row</td></tr>
<tr id="footer"><td>footer row</td></tr>
</table>

Suzy