Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 27th, 2005, 12:37 PM
gator70 gator70 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 9 gator70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 18 m 56 sec
Reputation Power: 0
Need some CSS/Table/ASP help

I finally got all the ASP pages I need working properly. Now I'm ready to tie them all together.
The problem I've run into is when I try to use CSS, I can't get the ASP page to display using
#include or Server.Execute.

So I then tried to use a table, which worked fine with Server.Execute but the next page goes
into full screen, when I would like it to stay in the same cell as the first page. Tried _self, _parent,
_top and it still opens full screen.

I'm trying to avoid using frames, but I'm afraid that's the only way it will work.

I'm wondering if I'm going in the wrong direction with my coding. Do I need to hard code the design
into each ASP page in order for it to work? What I envision is banner, left-nav bar, main content (ASP
pages) beneath banner and to the side of nav bar and a footer.

Any help or points in the right direction would be appreciated. I've searched a couple hours on google
and haven't found anything substantial that pertains to the above situation.

Reply With Quote
  #2  
Old April 27th, 2005, 12:57 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Please don't use tables for page layout

And paste your code here, I can get that CSS to be printed again.

I trust you're using XHTML1.1?

Reply With Quote
  #3  
Old April 29th, 2005, 08:48 PM
gator70 gator70 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 9 gator70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 18 m 56 sec
Reputation Power: 0
This is the CSS

Code:
#container {
width: 1024px;
background-color: transparent;
margin: 0 auto 0 auto;
}
#banner {
width: 860px;
background-color: transparent;
display: block; 
margin-left: auto;
margin-right: auto;
}
#leftbar {
width: 200px;
background-color: #cccccc;
float: left;
}
#mainbar {
margin-left: auto;
margin-right: auto;
background-color: transparent;
}
#rightbar {
width: 200px;
background-color: #cccccc;
float: right;
}


Content:
Code:
 
<!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>Maintenance Officer Training</title>
<link href="float.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
<div id="container">
<div id="banner">
<ul>
<img src="images/maint_trng_banner.png" width="800" height="128">
</ul>
</div>
<div id="leftbar">
<ul>
<% Server.Execute("navbar.asp") %>
</ul>
</div>
<div id="rightbar">
<ul>
</ul>
</div>
<div id="mainbar">
<p>
<% Server.Execute("indiv_trng.asp") %>
</p>
</div>
 
</div>
</body>
</html>
 


Nav bar
Code:
 
<!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></title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<!-- left column -->
<td width="20%" height="100%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<p><tr><td><span class="offtrng"><a href="indiv_trng.asp">View Individual Training</a></span></td></tr></p>
<p><tr><td><span class="offtrng">Search Classes Attended </span></td></tr></p>
<p><tr><td><span class="offtrng"></span></td></tr></p>
<p><tr><td><span class="offtrng"><a href="addrecord.asp">Add Record</a></span></td></tr></p>
<p><tr><td><span class="offtrng"><a href="edit.asp">Edit Record</a></span></td></tr></p>
<p><tr><td><span class="offtrng"><a href="delete_select.asp">Delete Record</a></span></td></tr></p>
</table>
</td>
<!-- right column -->
<td width="80%" valign="top"> 
</body>
</html>


I just need a point in the right direction... the code above works but when it goes to the next asp page, that page opens full screen. That's not what I want, I want it to open in the content area. Is that possible? Or do I need to code each ASP page to load the banner and navbar via CSS?

Thanks.
Comments on this post
baseballdude_ agrees: Wow, very detailed...

Reply With Quote
  #4  
Old April 29th, 2005, 09:16 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Mar 2005
Location: I used to live at home, now I stay at the house
Posts: 3,396 ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)ChiefWigs1982 User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 1 Month 1 Week 3 Days 11 h 28 m 46 sec
Reputation Power: 307
Facebook
Wahey, 1.0! Good lad! Should be 'Strict' though...

Why are you using tables? You're not even using them properly.
You have <tr>'s within <p>'s...? Why?

And you close the <body> without ending the <td>,<tr> and <table>.

Reply With Quote
  #5  
Old April 30th, 2005, 07:36 AM
gator70 gator70 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 9 gator70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 18 m 56 sec
Reputation Power: 0
Well that page is a test and I have not finished coding it. I'm beginning to think that I'm going to have to hard code each ASP page to load the navbar and banner. Frames would work, but I know there has to be a way to do it because I have seen other pages work the way I described.

BTW, if I don't use tables the asp page loads below the navbar and not to the side like I want.

Reply With Quote
  #6  
Old April 30th, 2005, 08:05 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Erm...

Importing Navbar.asp into an existing page will also insert the <DTD> and other header and unique-only elements... the page wont validate and will confuse most browsers out there.

Oh, and aim for XHTML1.1 rather than 1.0 Strict.

Reply With Quote
  #7  
Old May 1st, 2005, 08:18 PM
gator70 gator70 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 9 gator70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 18 m 56 sec
Reputation Power: 0
Want to thank everyone for their help. I decided to go a different route and went with horizontal menus. This solved the loading of my ASP pages and I hardcoded each page with the include file with the banner and navigation bar, so it works just the way I want it.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > Need some CSS/Table/ASP help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT