CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/16/2008 11:33:42 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 51 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
teddymeu4u
Asp.Net User
Create master page with css and divs3/16/2008 11:33:42 AM

0

Hi All

Ive been trying to design a css/div master page that will work on mozilla and internet explorer and alhtough ive done this before im trying a different template layout and just cant get it to work, basically ive attached the css and the page and what i want is for the navigation to be on the left and my content box to be directly in line with the navigation, my footer below these 2 boxes and my header directly above, i also wanted a background / border around the entire page.  Normally i use the navigation at the top and it works fine.  If you paste the code into a page you'll see what i mean.  It looks the same on both mozilla and internet explorer and at the moment the boxes are sitting below each other.  ive tried changing everything and im stuck.

  Heres the CSS

1    .outerTable {
2    	border: 1px solid #000000;
3    	background-color: #FFFFFF;
4    	height: auto;
5    	width: 960px;
6    	margin-left: 27px;
7    	margin-top: 1%;
8    	margin-right: 27px;
9    }
10   body {
11   	background-color: #CCCCCC;
12   }
13   .header {
14   	border: 1px solid #000000;
15   	height: 150px;
16   	width: 900px;
17   	margin-left: 30px;
18   	margin-top: 10px;
19   	margin-right: 30px;
20   	padding: 0px;
21   }
22   .navigation {
23   	font-family: Verdana, Arial, Helvetica, sans-serif;
24   	font-size: 11px;
25   	color: #666666;
26   	border: 1px solid #000000;
27   	height: 300px;
28   	width: 200px;
29   	margin-top: 30px;
30   	margin-left: 30px;
31   }
32   
33   .content {
34   	font-family: Verdana, Arial, Helvetica, sans-serif;
35   	font-size: 11px;
36   	color: #666666;
37   	height: 300px;
38   	width: 680px;
39   	border: 1px solid #000000;
40   	margin-left: 250px;
41   	margin-top: 30px;
42   }
43   .footer {
44   	font-family: Verdana, Arial, Helvetica, sans-serif;
45   	font-size: 11px;
46   	padding: 0px;
47   	height: 20px;
48   	width: 900px;
49   	border: 1px solid #000000;
50   	position:relative;
51   	margin-left: 30px;
52   	margin-top: 10px;
53   	margin-bottom: 10px;
54   }
 Heres the HTML
 
1    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2    <html xmlns="http://www.w3.org/1999/xhtml">
3    <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5    <link href="../css/test.css" rel="stylesheet" type="text/css" />
6    </head>
7    
8    <body>
9    <div id="outerTable" class="outerTable">
10   <div id="header" class="header"></div>
11   <div id="navigation" class="navigation"></div>
12   <div id="content" class="content"></div>
13   <div id="footer" class="footer"></div>
14   </div>
15   </body>
16   </html>
 Your help in this would be greatly appreciated.
 
No one said it was gonna be easy, then again, nothing worth doing ever is.
ShadowDanser
Asp.Net User
Re: Create master page with css and divs3/16/2008 12:38:02 PM

0

Add:

.navigation {
   float: left;
}


Please remember to 'Mark as Answer' if this post answered your question!
teddymeu4u
Asp.Net User
Re: Create master page with css and divs3/16/2008 3:46:48 PM

0

Hi, thanks for the reply however this only partly works.  In IE its fine but with Mozilla the navigation and content boxes have merged, can you provide any more help?

thanks and kind regards

 

 

.outerTable {
   	border: 1px solid #000000;
   	background-color: #FFFFFF;
   	height: auto;
   	width: 960px;
    	margin-left: 27px;
    	margin-top: 1%;
    	margin-right: 27px;
		}
   body {
  	background-color: #CCCCCC;
  }
   .header {
  	border: 1px solid #000000;
   	height: 150px;
   	width: 900px;
   	margin-left: 30px;
   	margin-top: 10px;
 	margin-right: 30px;
  	padding: 0px;
   }
  .navigation {
  	font-family: Verdana, Arial, Helvetica, sans-serif;
 	font-size: 11px;
  	color: #666666;
   	border: 1px solid #000000;
   	height: 300px;
  	width: 200px;
  	margin-top: 30px;
   	margin-left: 30px;
	float:left
 }
   
..content {
  	font-family: Verdana, Arial, Helvetica, sans-serif;
  	font-size: 11px;
  	color: #666666;
   	height: 300px;
   	width: 680px;
   	border: 1px solid #000000;
  	margin-left: 10px;
   	margin-top: 30px;
 }
..footer {
  	font-family: Verdana, Arial, Helvetica, sans-serif;
   	font-size: 11px;   	padding: 0px;
 	height: 20px;
 	width: 900px;
   	border: 1px solid #000000;
   	position:relative;
   	margin-left: 30px;
  	margin-top: 10px;
  	margin-bottom: 10px;
 }
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="../css/testOriginal.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="outerTable" class="outerTable">
<div id="header" class="header"><img src="../images/header.jpg" alt="sdcsdc" /></div>
<div id="navigation" class="navigation"></div>
<div id="content" class="content"></div>
<div id="footer" class="footer"></div>
</div>
</body>
</html>
 Thanks and Kind Regards

No one said it was gonna be easy, then again, nothing worth doing ever is.
IceBreaker
Asp.Net User
Re: Create master page with css and divs3/16/2008 3:56:14 PM

0

Hi,
1. On .outerTable add overflow: hidden; to keep the everything inside it.
2. On .content add float: left;
3. On .footer add clear: both; to clear all floats.

I would also go through your css and remove things you don't need like position: relative; on your footer etc.

 

ShadowDanser
Asp.Net User
Re: Create master page with css and divs3/16/2008 4:31:15 PM

0

I don't have Mozilla.

Take this one as sample:
http://www.dynamicdrive.com/style/layouts/item/css-fixed-layout-22-fixed-fixed/


Please remember to 'Mark as Answer' if this post answered your question!
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning ASP.NET 2.0 with C# Authors: Chris Hart, John Kauffman, David Sussman, Chris Ullman, Pages: 735, Published: 2006
Visual Web Developer 2005 Express Edition For Dummies Authors: Alan Simpson, Pages: 358, Published: 2005
Master Visually Dreamweaver CS3 and Flash CS3 Professional: Dreamweaver Cs3 and Flash Cs3 Professional Authors: Sherry Kinkoph, Sherry Kinkoph Gunter, Janet Valade, Pages: 665, Published: 2007
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Mastering Integrated HTML and CSS: Integrate HTML Or XHTML and Cascading Style Sheets for Best Results. Master Key Techniques and Improve Your Productivity Authors: Virginia DeBolt, Pages: 600, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008

Web:
Codefixer - Master Pages with CSS Using a Master Page to create a 2 column CSS layout ... We have created 3 divs. There’s a header div with the unique id ‘headercontent’ which is where the ...
ASP.NET - CSS, Google & Master Pages | DreamInCode.net I can't confirm this though. 2.) Do master pages affect the way CSS is applied? Particularly concerning nested Divs. ...
Expression Web Master Page Tutorial in ASP.NET Part -3 (Div Tags ... Mar 24, 2008 ... Expression Web Master Page Tutorial in ASP.NET (Div Tags,CSS Properties) After inserting DIV tag , create new style which control this DIV ...
Master pages and DIV width problem - ASP Free
and you'll see what i mean. (I'm assuming here you know how to create a master page and referencing a master page from a webform) ...
css and master pages - ng.asp-net-forum ... Here's the pertinent code:. in default.aspx that inherits master page:.
. in Styles/default.css: .MainSplash ...
Master Pages In ASP.NET 2.0 Jul 18, 2005 ... We can make changes to the layout of the site simply by editing the CSS or master page, whichever makes the most sense for the change we ...
Microsoft: ASP.NET - Problems to create a masterpage Hello, i'm new at this and i'm trying to design my masterpage but is complicated for me because i copied a css code from Dreamweaver to apply it in the ...
How to Create a SharePoint Server 2007 Custom Master Page and Page ... There are multiple ways to create a custom master page and page layouts, including the CSS, and then deploy your work. Each approach has benefits and ...
Creating a Site-Wide Layout Using Master Pages : The Official ... For example, the topContent
element, which displays the "Master Pages Tutorials" text and link, has its formatting rules specified in Styles.css as ...
Round image corner in HTML & CSS using Table or DIV - Learning Is Fun Nov 8, 2008 ... 4 Responses to “Round image corner in HTML & CSS using Table or DIV”. manik. November 12th, 2008 at 1:36 am. i using master page in my ...












how do i type a special charater in c# source code?

adding quotes to link

good articles needed

control to embed .jsp url in page?

replace console output with webpage output.

try to pass a querystring with a class that filters by category

urgent need help (asp.net 2005)

debugging when a value is passed in the querystring

paging setup

how to sort arraylist with object

about detailsview.- ( when editing) how?

set a "close" button's postbackurl property to the page that called it?

read the scan image

poll - multiple options maintained on postback

modify data in appsettings section of web.config

tabpanel focus event or something similar

webforms button not visible

vs.net & tabletpc

how to bind data on the control inside another control?

is it okay to delete temporary files?

problem create thumbnail from image

login in and security questions

reset the view state of the current page!

accessibility - special considerations with asp.net

configuring iis 5.1 for use with asp.net

problem in book.

file upload to another server?

paypal integration!!

virtual path stops working under 2.0 official version, any idea?

attribute not complete statement

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT