The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2013, 10:32:22 AM

Login with username, password and session length


Pages: 1 2 [3]
  Print  
Author Topic: Paging Pretty Boys - CSS Tables w Padding & 120 pixels Ads  (Read 7870 times)
m0nkeymafia
Expert
****
Offline Offline

Posts: 240


Check it!


View Profile
« Reply #30 on: May 25, 2007, 01:19:02 AM »

Well I'm at work so just the usual
Suspenders and a short skirt Wink

RaaaOOowwW 
Logged

I am Tyler Durden
dirtdog1960to
Journeyman
***
Offline Offline

Posts: 51


View Profile
« Reply #31 on: May 25, 2007, 07:45:14 AM »


total size = width [padding isnt included]

so all you do is this
#mybox { IE style and everything else here }
html > body #mybox { FF specific stuff }


dummies lak me dont unnerstan your shortcuts if you are in the mood could give a full example of teh code?
Logged
m0nkeymafia
Expert
****
Offline Offline

Posts: 240


Check it!


View Profile
« Reply #32 on: May 25, 2007, 08:02:07 AM »

yeah sure nps

this is purely from memory so it may have the opposite effect
but

/*Normal class inc IE stuff*/
div.myclass {
background-color: #efefef;
width: 500px;
padding: 10px;
}

/* Firefox specific version, basically touch up the widths etc */
html > body div.myclass {
width: 480px; /* Note this is original width - left padding - right padding */
padding: 10px;
}

Job done - lemmie know if it works
Logged

I am Tyler Durden
Pages: 1 2 [3]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!