| | |
Firefox and IE padding issue.
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
If you take a look at my website in firefox:
and in internet explorer:
you will see the top menu in internet explorer is on the left.
The css code I have used is:
and the table code is as follows:
For some reason the rest of the padding is fine. I've attached the whole file if you need to check out anything else.
and in internet explorer:
you will see the top menu in internet explorer is on the left.
The css code I have used is:
HTML and CSS Syntax (Toggle Plain Text)
.overbodyline { background-image:url(/music/images/main.gif); background-repeat: repeat-y; {T_TH_COLOR1} solid; font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT}; padding: 0px 0px 0px 40px; }
and the table code is as follows:
HTML and CSS Syntax (Toggle Plain Text)
<table width="100%" cellspacing="0" border="0" class="overbodyline"> <tr><td><table class="stand" width="700px">random gubbins </table> </td></tr> <table>
For some reason the rest of the padding is fine. I've attached the whole file if you need to check out anything else.
Last edited by tgreer; Feb 6th, 2006 at 11:55 am. Reason: Missing code tags again...
Ah taking of cellpadding - I've tried that and it works but I've found no way of specifying that it only pads the left hand side... any ideas if theres a way to define it?
So theres no way of defining the cellpadding attribute to pad from the left. So back to square one. I wonder why this table is causing trouble when the rest are fine?
•
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
CSS attributes "cascade", from least-specific to most-specific. You are also mixing inline attributes with CSS class definitions.
In any given TD for your table, you'll get a "combined" or "derived" style based on the inline attributes, the "overbodyline" class, and the "stand" class. Any attributes you've left undefined (such as "margin") will get whatever default the browser uses.
Is the data in your table really tabular? Are you actually presenting a "table" of data? If not, then consider using DIVs, SPANs, and CSS to control appearance and flow. It will be much simpler to troubleshoot these issues if you didn't mix tables and CSS.
In any given TD for your table, you'll get a "combined" or "derived" style based on the inline attributes, the "overbodyline" class, and the "stand" class. Any attributes you've left undefined (such as "margin") will get whatever default the browser uses.
Is the data in your table really tabular? Are you actually presenting a "table" of data? If not, then consider using DIVs, SPANs, and CSS to control appearance and flow. It will be much simpler to troubleshoot these issues if you didn't mix tables and CSS.
Last edited by tgreer; Feb 6th, 2006 at 5:40 pm.
![]() |
Similar Threads
- CSS issue with ie (HTML and CSS)
- scrollbars color or hiding not possible in Firefox (HTML and CSS)
- cannot access ISS "localhost" web (Web Browsers)
Other Threads in the HTML and CSS Forum
- Previous Thread: dreamweaver button help
- Next Thread: Dynamic iframe height ?
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






