Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Nov 4, 2009, 18:34   #23
RyanReese
CSS Guru in Training
 
RyanReese's Avatar
 
Join Date: Oct 2008
Location: Whiteford, MD
Posts: 8,695
Quote:
Originally Posted by d_vmn View Post
Thanks a million!
Your code is at: css2g.webatu.com/css2o.shtml and mine at: css2g.webatu.com/css2p.shtml
They work well in FF 3.0 and IE 8.0. I'll check Safari and IE 7 tomorrow.

So basically I think you are saying background images should all be inside one wrapper. My motivation for doing this is mostly to reduce my total page byte size for faster page loads and a better text to code ratio.
Actually his main point is to use a 100% high wrapper instead of putting an image on the body, which can cause jogs
Quote:
By the way what tools do you use? I am using DreamWeaver 2004 but tracking css issues is a challenge with it.
Personal preference. I use notepad
Quote:
There's two pieces of your css magic I would love an explanation on:
1) the inner class as in height:1%:

* html #wrapper {height:100%;}
.inner{
padding: 0 23px;
min-height:0;
}
* html .inner{height:1%;}
.inner needs haslayout to avoid an IE bug and min-height:0; sets haslayout for IE7, and since IE6 doesn't support min-height Paul has fed height:1%; via the star html hack. He could have also just given .inner zoom:1; (though it isn't valid)
Quote:


2) and why the rounded corner borders had to have -1 pix as in:
The image is indeed 776 pixels wide.

#bdrt {
background: url("/pix/bdrt_776.gif") no-repeat -1px 0;
height:41px;
}
#bdrb {
background: url("/pix/bdrb_776.gif") no-repeat -1px 0;
height:41px;
}
He is just telling it to start -1px from the left
RyanReese is online now   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 11:00.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved