Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-08-2009, 07:10 PM 100% issues
Extreme Talker

Posts: 176
Trades: 0
I have a box. I want it to be 100% of the width minus a couple pixels. I also want to add padding inside the box, without making the whole thing bigger.

How?
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2009, 04:34 PM Re: 100% issues
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Padding is not INSIDE the box at all, it's added OUTSIDE the box -
http://www.redmelon.net/tstme/box_model/

Quote:
I want it to be 100% of the width minus a couple pixels
Soo... don't set a width, it will be 100% by default, and give it a couple of pixels worth of margin.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 100% issues
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19453 seconds with 12 queries