Wrox Programmer Forums
|
BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2
This is the forum to discuss the Wrox book Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages by Jacob J. Sanford; ISBN: 9780470124482
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2008, 03:57 PM
Registered User
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example in CH 4 doesn't work in SeaMonkey browser

Hello,

  I'm using the book as a tutorial into the world of CSS and ASP.NET. I'm using VS 2005 and have been following along pretty well so far.

  I got to Chapter 4, where we first put the logo images and the CSS together and create a visible web page/site.

  The IDE displays the site using IE, which seems to work find. However, when I tried to view the site using SeaMonkey (1.1.7), the logo image is not centered. These are the DIVs for "headerGraphic" and "navigationArea".

  Note that the content for the DIVs "bodyArea" and "footerArea" are centered.

  I tried changing the text-align element of the "body" CSS block to "left" and "right", both had an effect on the "bodyArea" and "footerArea" content, but not the "headerGraphic" and "navigationArea" content.

  I was hoping to learn to use CSS in a way that would work across many different browser types. Can you provide any help?

  I tried to include the content of the CSS and HTML files, but was told by the application that I cannot post content which includes URLs. Please let me know how you would like me to show you the files with which I'm working.

Thanks,
 
Old November 28th, 2008, 04:25 PM
Registered User
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As a follow-up, I asked the same question in a SeaMonkey support group and was told that the CSS styles for both the "headerGraphic" and "navigationArea" blocks had nothing to cause them to be centered, and that I needed to add:

  margin: auto;

to each. Once I did this, the content was centered when viewing using the SeaMonkey browser.

Why does IE center this content without the above margin settings?

By the way, I couldn't find any settings in the "Style Builder" UI to cause these settings, so I had to set them in the file by hand.

Why does it take a "margin" setting to cause content to be centered anyway? I sure hope this CSS stuff begins to make sense to me someday ;-
Thanks,
 
Old November 28th, 2008, 05:21 PM
Registered User
 
Join Date: Nov 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And yet another follow-up. I see that you cover this issue at the end of that chapter (in the section named Browser Check).

First, I wish you had mentioned this earlier - like before we would have run the first example.

Second, in that section, you mention that the Gecko-based browsers are more standards compliant than IE. I wonder then why you write code that will work in IE but not the other browsers - then have to "fix" the code to work in all browsers?

Perhaps this was just your way of pointing out the problem?

In any case, I was very happy to find that you addressed the issue in the book.

Thanks,





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 16 Try It Out doesn' t work + Fixes VictorVictor BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 December 12th, 2007 10:04 AM
can't get messagebox example in ch 18 to work itlotl VB.NET 2002/2003 Basics 3 January 13th, 2006 04:39 PM
Ch 3 Examples Don't Work Gregorio BOOK: Professional Crystal Reports for VS.NET 3 February 15th, 2005 11:36 AM
browser "Find" option does not work...w/frames. abbylee26 Classic ASP Basics 1 October 23rd, 2003 05:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.