[Web4lib] css troubles

Jonathan Bloy JBloy at edgewood.edu
Wed Oct 17 12:53:49 EDT 2007


Hi Sandra,

I was able to fix the layout/spacing of that "Electronic Reference Books" header by adding "margin-top: 1em;" to .titlebar class.  Doing that fixes the issue in Firefox.  It looks good in IE 7 (sorry, we don't have IE6 here).

Another thing I always do at the top of my css is include this:
        html * {margin: 0;padding: 0;}

Because different browsers can have different default margins and padding, this sets them all to zero.  Of course, then you have to remember to include margins/padding declarations for the everything that normally might have those, such as:
        p, h1, h3 {margin: 1em 0;}  and so forth.

It's a little more work, but at least then you know those will consistent across all browsers.

Hope that helps.

 - Jonathan

--
Jonathan Bloy
Web Services Librarian
Edgewood College
Madison, Wisconsin
http://library.edgewood.edu



-----Original Message-----
From: web4lib-bounces at webjunction.org [mailto:web4lib-bounces at webjunction.org] On Behalf Of Sandra Cahillane
Sent: Wednesday, October 17, 2007 11:10 AM
To: web4lib at webjunction.org
Subject: [Web4lib] css troubles


Hello web4lib friends,

I need some help getting my css to work correctly.  I've worked diligently
trying to get everything aligned-yes, it's that funky two column no tables
layout stuff-and have hit my knowledge wall.  I'm sure if I poked around
long enough I'd find the hack I need to fix this but am on a deadline and
was hoping to have this done in the next day or two.  Otherwise, I'll have
to use tables until I can figure out the fix!

If anyone has the time and the patience (unlike me) to take a look at these
pages I would so appreciate it.  The page looks almost correct in firefox-a
little alignment/margin/border tweaks to make but looks absolutely
horrendous in IE (which I hate but which is our campus-recommended
browser).

The pages are online at http://library.baypath.edu/courses/cim607.htm and
cim607.css.  I hope Diane Kovacs doesn't check this list because I just
finished a class with her and she tried to make me fix this myself.  Can
you believe that? ;)

Thanks,
Sandy

Sandy Cahillane
Systems and Reference Librarian
Bay Path College
Hatch Library
588 Longmeadow Street
Longmeadow, MA  01106
(413) 567-4529 or (413) 565-1376
fax-(413) 567-8345

_______________________________________________
Web4lib mailing list
Web4lib at webjunction.org
http://lists.webjunction.org/web4lib/


More information about the Web4lib mailing list