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

December 18th, 2010, 05:01 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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?
|
|

December 18th, 2010, 05:24 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

December 18th, 2010, 06:17 AM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 18th, 2010, 07:08 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

December 18th, 2010, 01:09 PM
|
|
Authorized User
|
|
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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
|
|

December 18th, 2010, 01:53 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
 |