Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 December 18th, 2010, 05:01 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Resizing the sidebar

When reviews AllByGenre are displayed as a bulleted list, the height of containing element is modified. How is the height of the sidebar changed accordingly? I suspect that it is done with CSS but can´t find it.

Sometimes an extra menu item, ^Up One Level, appears. How is it done?

Do you have a recommendation for a good CSS reference?
 
Old December 18th, 2010, 05:24 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
When reviews AllByGenre are displayed as a bulleted list, the height of containing element is modified. How is the height of the sidebar changed accordingly? I suspect that it is done with CSS but can´t find it.
Not sure what you mean. Can you elaborate?
Quote:
Sometimes an extra menu item, ^Up One Level, appears. How is it done?
Looks like you're using a browser that doesn't fully support the code generated by the menu (Chrome maybe, or Opera?) This may provide some more information: ASP.NET Menu & Google Chrome
Quote:
Do you have a recommendation for a good CSS reference?
You may want to check out Richard York's Beginning CSS from Wrox.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 18th, 2010, 06:17 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Resizing the sidebar

Hi Imar.
I am looking at your PlanetWrox solution Final under VS2008. The home (default) page has a height 500px, or whatever. The sidebar has the same height. The footer is there below. When Reviews/All By Genre is chosen from the menu, the height of the Main Content placeholder is increased to show the whole bulleted list. The height of the sidebar then changes by the same amount and the footer below both as before. This is, of course, whant we want but I don´t understand how it is done.

I am using Mozilla Firefox. This ^Up One Level menu item appears when running your PlanetWrox project under VS2008.

Regards,
Gudni
 
Old December 18th, 2010, 07:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Gudni,

Right, I see. The Sidebar *appears* to have the same height as the main content. In reality, it doesn't. Try adding:

border: 2px solid red;

to the Sidebar to see what I mean. Below the Sidebar you see the background color of the PageWrapper which happens to use the same color as the Sidebar. The border to the left of the Sidebar is actually the right-border of MainContent.

Do you have the same issue with the menu on the live site: http://aspnet35.planetwrox.com/

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 18th, 2010, 01:09 PM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Resizing the sidebar

Hi, Imar.

Of course! I changed the background color for the sidebar to that of the PageWrapper and now it seems to grow/shrink vertically as the height of the MainContent changes. Perfect!

Thanks for the tip on CSS references. The 2nd edition of Richard York's Beginning CSS was published in 2007 and a 3rd edition will be released soon. Maybe I will wait for that. Also, I have noticed two interesting titles on this sublect from O´Reilly.

The menu question (^Up One Level) is not so important. For the record, my default browser is Mozilla Firefox 3.6.13, but I also use IE8. Neither browser shows this menu item when I address the live site: http://aspnet35.planetwrox.com/.
__________________
Regards,
Gudni G. Sigurdsson
 
Old December 18th, 2010, 01:53 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you don't see it on my site, take another look at the link I posted to see how you can fix it on your site as well.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Left Sidebar Dr.T. BOOK: Professional WordPress 1 March 11th, 2011 06:15 AM
Chapter 6: Sidebar Goes Here CSharp0101 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 April 13th, 2010 03:31 AM
How do you position the Sidebar at absolute top-right? saidrad BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 11 April 12th, 2009 07:42 AM
Unanswered posts link on sidebar bmains Forum and Wrox.com Feedback 6 December 20th, 2008 06:16 AM
Sidebar loading through reflection? bmains C# 2005 0 October 20th, 2005 10:21 PM





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