Vault9 Modding Vault9 Graphics Vault9 Code Vault9 Net Vault9 OS Vault9 Gaming Vault9 ChillZone Vault9 Tech Vault9 Archives       Vault9 Global9       Vault9 Fusion     Vault9 Blog     Vault9 Network          
 

Please Note!

This is a read-only board, no new topics or registrations are allowed. The Code Vault has moved to http://forums.vault9.net - Be sure to find more information there!


 
Reply to this topicStart new topic
> Simple Problem Has Me Baffled! (html Related), What am I doing wrong
post Nov 18 2004, 04:17 AM
Post #1


CoOkIeMoNsTeR
Group Icon

Group: Regular Member
Posts: 558
Joined: 2-May 03
From: Durban
Member No.: 1,112




Hey guys, alright here's my problem, I have a simple frame setup with a menu on the left hand side and the content on the right hand side. Now whats happening is when you un-maximize/resize the window it clips the menu, I want it to clip from the content. How do I do this? My code currently looks like this:

CODE

<frameset cols="210,*" framespacing="0" border="0" frameborder="0">
<frame name="menu" target="main" scrolling="no" noresize src="Menu.html">
<frame name="content" src="content.asp" scrolling="auto">
</frameset>


Thanks biggrin.gif


--------------------
slouzbry stouvre for keykey...ooo woow!
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 18 2004, 04:17 AM
Post #


Member


Group: Administration

Joined: Today, 09:39 AM





Quote PostGo to the top of the page
post Nov 18 2004, 04:50 AM
Post #2


the mind is a terrible thing to taste
Group Icon

Group: Regular Member
Posts: 623
Joined: 19-September 03
From: Pretoria
Member No.: 1,743

Sex: Male



I have not worked with frames in ages (I don't really like them) but try to give a margin to the menu frame

CODE

<frame name="menu" target="main" scrolling="no" noresize src="Menu.html" marginwidth="2">


Hope it helps


--------------------
Absence of evidence is not evidence of absence

<div align="center">
<img src="http://www.denness.net/rpi/username/gvdwest.gif">
</div>
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 18 2004, 05:10 AM
Post #3


CoOkIeMoNsTeR
Group Icon

Group: Regular Member
Posts: 558
Joined: 2-May 03
From: Durban
Member No.: 1,112




No luck tongue.gif Thanks anyway
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 18 2004, 05:12 AM
Post #4


d-_-b
Group Icon

Group: Administration
Posts: 924
Joined: 23-October 03
From: Cape Town, SA
Member No.: 2,090

Sex: Male



fudzy - 1st rule of html since 1992: NO FRAMES!

You really don't need to use them, and they make navigation using the back keys and refreshing a nightmare for novice users. They are totally fugly and unnecessary.

Rather use a table layout system (2 cols, 1 row) with specified widths, and mock up your first page. The page skeleton should look like this:

CODE
<table width="750" cellpadding="0" cellspacing="0" border="0">
<tr>
 <td width="200" style="width: 200px;">
   <!-- Your left-hand menu //-->
 </td>
 <td width="550" style="width: 550px;">
   <!-- Your right-hand content //-->
 </td>
</tr>
</table>


That should give you a page 750 pixels wide, so its 800x600 friendly.
What u think?

I see you're using ASP. You can make header and footer files from that structure above, and include them in each page you make.


--------------------
A hand in the bird is worth two on the bush.
user posted image user posted image
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 18 2004, 05:29 AM
Post #5


CoOkIeMoNsTeR
Group Icon

Group: Regular Member
Posts: 558
Joined: 2-May 03
From: Durban
Member No.: 1,112




Okay, if frames are a no no, then how do I get the contents of the right hand table to change when a menu item is selected on the left? Redo each page with this table idea?
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 19 2004, 08:00 AM
Post #6


Linux Zealot.
Group Icon

Group: Regular Member
Posts: 475
Joined: 11-January 03
Member No.: 839




Kinda...

This frameless setup is usually used when scripting environments are in place that let you include html files within each other. I'm talking perl, php, jsp, etc. But it doesn't look like you have that option. So the short answer is: "Yes".

What would typically happen in something like php is...

CODE

<table width="750" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="200" style="width: 200px;">
  <?php include "menu.htm" ?>    <!-- This file contains your menu -->
</td>
<td width="550" style="width: 550px;">
  <!-- Your right-hand content //-->
</td>
</tr>
</table>


This post has been edited by Chatsubo: Nov 19 2004, 08:01 AM


--------------------
Windows Errors #999 through 9999: "Reserved for future use."
User is offlineProfile CardPM
+Quote PostGo to the top of the page

Reply to this topicStart new topic



 



- Lo-Fi Version Time is now: 19th March 2010 - 09:39 AM
Privacy Policy
South Africa's Top Sites Kinetiq