Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design, 2nd Edition by Richard York; ISBN: 9780470096970
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2008, 09:39 AM
Registered User
 
Join Date: Feb 2008
Location: Katy, Texas, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 1, Example 1-1 - IE not showing like Safari

Hi. I'm enjoying your book. I've typing in the example and checked my code with the downloaded code to make sure I did every correct. It appears I did type everything in correct, as diff tells me so.

But just to be sure, I am using the downloaded html and css files, and the images still do not show up correctly.

In Safari, the images of the planets are pretty much centered left to right and top to bottom in the areas where the reside. However, in IE 6, they are leftmost and topmost in their respective areas.

Here is Safari: http://www.burchwoodusa.com/miscpix/...r_position.png

Here is IE 6: http://www.burchwoodusa.com/miscpix/...on_jupiter.PNG

The other difference is the dark background behind the planet facts. In Safari it is transparent, while in IE 6 it is opaque.

Is there a fix?

Thanks., Todd

Reply With Quote
  #2 (permalink)  
Old March 18th, 2008, 11:11 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Ah, well, it seems I used a "fixed" background image for div#solar-system. And IE6 doesn't support "fixed" background images on anything other than the <body> element, that's what gives the illusion of transparency in Safari. IE7 does support this effect though.

You could just drop the "fixed" keyword from that declaration, and you should get the star background back, it won't look as cool as it does in Safari, but it should render.

In any case, this example wasn't really meant to be pixel-perfect. It was just meant as a quick, get your feet wet example. As you will have learned later in the book, you can fine tweak the various aesthetic anomalies present in IE with a conditional comment style sheet until you get a rendering that much more closely matches the other browsers.

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design, 2nd Edition
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript in safari arafat.eajaz Javascript 0 September 5th, 2008 02:06 AM
safari/apple and .net reblev ASP.NET 2.0 Basics 2 August 27th, 2007 02:09 PM
(Chap 2) problem with cookies using safari browser Stephen Liggett BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 April 20th, 2006 11:25 AM
tell about safari -n- konqueror anshul HTML Code Clinic 2 August 26th, 2004 09:32 PM
Safari Browser Larson HTML Code Clinic 0 February 11th, 2004 09:55 PM



All times are GMT -4. The time now is 01:56 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.