p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 28th, 2008, 03:57 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2008
Location: Sacramento, California, USA.
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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 28th, 2008, 04:25 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2008
Location: Sacramento, California, USA.
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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old November 28th, 2008, 05:21 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2008
Location: Sacramento, California, USA.
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,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get iRealtor photo browser to work wloescher BOOK: Professional iPhone and iPod touch Programming Building Mobile Safari ISBN: 978-0-470-25155-3 0 July 22nd, 2008 12:14 PM
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 06:15 AM



All times are GMT -4. The time now is 07:33 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc