Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 Search this Thread Display Modes
  #1 (permalink)  
Old June 23rd, 2014, 12:52 AM
Authorized User
Points: 76, Level: 1
Points: 76, Level: 1 Points: 76, Level: 1 Points: 76, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 16
Thanks: 7
Thanked 0 Times in 0 Posts
Default Chapter 3 - Try it out - Styling PW Homepage

Hi there,

While doing the TIO - Styling the Planet Wrox Homepage, the browser(IE8) page does not display correctly as per default.aspx below:-
Styles.css paste below for reference.

I have installed modernizr library to the site, what is wrong?


<%@ Page Language="VB" %>

<!DOCTYPE html>

<script runat="server">

Protected Sub Page_Load(sender As Object, e As EventArgs)

End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.auto-style1 {
color: #990033;
}
</style>
<link href="MasterPages/Styles/Styles.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<div id="PageWrapper">
<header>Header Goes Here</header>
<nav>Menu Goes Here</nav>
<section id="MainContent">

<h1>Hi there visitor and welcome to Planet Wrox</h1>

</section>
<aside ="Sidebar">Sidebar Goes Here</aside>
<footer>Footer Goes Here</footer><p>
We're glad you're<span class="auto-style1"> paying a visit</span> to <a href="http://www.PlanetWrox.com">www.PlanetWrox.com</a>, the coolest music community site on the internet. and concert</p>
<p>
&nbsp;</p>
<p>
Feel free to have a look around; there are lots of interesting <strong>reviews and concert pictures</strong> to be found here.</p>




</div>
</form>
</body>
</html>

Reference from styles.css

header
{
background-color: #C0C0C0;
width: 844px;
height: 86px;
}
*
{
font-family: Arial;
}
h1
{
font-size: 20px;
}
#Pagewrapper
{
width: 844px;
margin: auto;
}
nav
{
width: 844px;
}
section#MainContent {
width: 664px;
float: left;
}
aside
{
background-color: Gray;
width: 180px;
float: left;
}
footer
{
background-color: #C0C0C0;
width: 844px;
clear: both;
}

Last edited by mohamad; June 23rd, 2014 at 12:58 AM..
Reply With Quote
  #2 (permalink)  
Old June 23rd, 2014, 09:34 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

It looks like your reference to the CSS file is incorrect as it's referring to it as a sub folder of the Master Pages folder.

Have you downloaded the source that comes with the book? That way you could compare your code with mine.

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
mohamad (June 23rd, 2014)
  #3 (permalink)  
Old June 23rd, 2014, 11:56 AM
Authorized User
Points: 76, Level: 1
Points: 76, Level: 1 Points: 76, Level: 1 Points: 76, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 16
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Thanks Imar,

After some changes of coding location, all browsers (opera,safari,chrome,mozilla) display the default.aspx
with Header/Menu/Sidebar/Footer correctly as intended except IE8.

After installing IE9, it display correctly.

Cheers,
Mohamad

Last edited by mohamad; June 23rd, 2014 at 01:54 PM..
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

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
Chapter 7 Styling the Menu honzabilek4 BOOK: Beginning ASP.NET 4.5 : in C# and VB 2 June 15th, 2014 10:40 AM
Designing HomePage kasra BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 13th, 2014 07:26 AM
Styling Text on Chapter 7 thuyhoang BOOK: Beginning HTML and CSS (published March 2013) 14 September 26th, 2013 09:55 AM
Urgent: Lock account if user login with invalid pw ramuis78 ASP.NET 2.0 Professional 2 May 15th, 2007 08:05 PM
Administration Tool and Strong PW Deano252 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 April 4th, 2006 02:53 PM



All times are GMT -4. The time now is 03:59 AM.


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