Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-08-2006, 10:18 AM   #1 (permalink)
Stoner
Registered User
 
Join Date: Apr 2006
Posts: 3
Stoner is on a distinguished road
Positioning of objects in CSS (with .asp include file)

I use CSS, HTML and one ASP command: SSI (therefore my file names are not .html but .asp)
I've made a template file that shows my navigation menu (left side) and banner (top) and I'm including it in every .asp page
I want to present the main content(which is always from different .asp) in the middle while the navigation menu will be in the left and banner will be on top.
What happens is that the main content is shown below the navigation menu.
I know how to fix it with absolute positioning (also with %)
But then if I change the size of my window or screen resolution it's not shown correctly.

How can I put my main content in a specific place with consideration of screen resolution and browser window size?
Stoner is offline   Reply With Quote
Old 04-08-2006, 11:02 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
some people are hardcore CSS people, but for the skeleton of a site with columns, i still prefer to use tables. This format will be scalable for any resolution.
HTML Code:
<html>
<body>
<div>Here is my top banner</div>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
  <td width=150 valign=top>This is my left menu</td>
  <td valign=top>This is my main content</td>
</tr>
</table>
</body>
</html>
now when you want to re-use the header/footer/navigation, i would do this:

This is my header include
HTML Code:
<html>
<body>
<div>Here is my top banner</div>
<table border=0 cellspacing=0 cellpadding=0 width=100%>
<tr>
  <td width=150 valign=top>This is my left menu</td>
  <td valign=top>
This is my footer include
HTML Code:
</td>
</tr>
</table>
</body>
</html>
And each page would look like this. (i'm using php includes cause i'm not familiar with asp from memory)
HTML Code:
<?
include("header.html");
?>
This is my content
<?
include("footer.html");
?>
sde is offline   Reply With Quote
Old 04-10-2006, 02:33 PM   #3 (permalink)
Stoner
Registered User
 
Join Date: Apr 2006
Posts: 3
Stoner is on a distinguished road
i'm still lost...

I got the website running now... and i've put the css there also.
http://www12.asphost4free.com/stoner/index.asp
please help !
Stoner is offline   Reply With Quote
Old 04-10-2006, 02:41 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
when you put a little more effort into communicating what you need help with, you're more likely to get better help.

good luck.
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 10:01 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting