|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
HELP! CSS to make side menu? How do I instert css into page? HELP!
Ok, I have a website that i'm building with about 25 pages, and I keep on having to change the side navigation bar, and then I have to copy and paste it on each page to update it. IS THERE A WAY FOR ME TO ONLY UPDATE IT ONCE AND IT UPDATES TO ALL THE PAGES?
Is the answer css? or i-frames(or whatever it's called) If so, then how would I do this?! PLEASE HELP! Last edited by Dakinesoul : February 13th, 2004 at 06:01 PM. |
|
#2
|
|||
|
|||
|
i take it you mean having the css in a seperate doc and linking to it if so put somthing like this in header of html
<LINK REL=StyleSheet HREF="doc.css" TYPE="text/css" MEDIA=screen> where doc.css is location of css doc regards sid Webmule Hosting - The affordable Uk web host |
|
#3
|
|||
|
|||
|
help!
but it didn't do anything, i pasted it in the header and changed it to point to my css doc, but then what do i put in the body to make it appear there? It's just the navigation, I wanna stick it in the left table cell of my layout. I have NO clue how to do this.
Quote:
|
|
#4
|
|||
|
|||
|
post your code and i may be able to help more
|
|
#5
|
|||
|
|||
|
Maybe It's a template I want to use. how?
|
|
#6
|
|||
|
|||
|
code? I have no code.
All i have is a table... Here is my problem, I have a page, that has a navigation system over to the left in a table. I want to have that table on a seperate page, and to have my website grab that page with the table on it, because it's heck trying to copy and past the table into 25 different pages everytime I make a change to the nagivation inside the table. I want it so all I have to do is edit this table on a page, and then it updates for ALL of my 25 pages. Does that make sense? I don't know if it's css or template or what. I have no idea how to do this, but it would save me TONS AND TONS of time, so if anyone can help, thanks.
|
|
#7
|
|||
|
|||
|
i still need to see code
|
|
#8
|
|||
|
|||
|
then frames is one way
</head> <frameset frameborder="2" framespacing="0" border="2" cols="198,*" rows="*"> <frame marginwidth="3" marginheight="3" src="menu.htm" name="menu" scrolling="auto" frameborder="1"> <frame marginwidth="3" marginheight="3" src="content.htm" name="text" frameborder="1"> </frameset> <noframes></noframes> </frameset> <body> put that in seperate html doc and menu in doc called menu.htm and the content.htm will now be your main or first page links in menu will have to target text eg <A href="page.html" target="text">Show menu</a> go to here for example Last edited by sidney : February 13th, 2004 at 08:15 PM. |
|
#9
|
|||
|
|||
|
but my page has the navigation close to the center, so it cant be frames, what about those i-frames or whateverd? I need to place it pretty much in the middle of the page.
|
|
#10
|
|||
|
|||
|
Just throw in an Iframe into all your 25 pages, as many have mentioned.
[pages 1 through 25] : <!-- start table --> <table> <tr> <!-- left body --> <td>left body</td> <!-- center navigation --> <td><iframe src="navigation.html"></iframe></td> <!-- right body --> <td>left body</td> </tr> </table> <!-- end table --> [navigation.html] : <html> <!-- navigation with global hrefs here --> </html> Work out. Search google for 'iframe' for more info. |
|
#11
|
|||
|
|||
|
Hey thanks for the help, But I decided to use iframes,
<iframe width="132" height="600" src="Side1.htm" align=left frameborder=0 scrolling="no"> </iframe> and then in the link of my navigation put <td onmouseover="bgColor='#d8d8d8'" onmouseout="bgColor='#eeeeee'" bgcolor="#eeeeee"> <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><A HREF="AimIcons.htm" target="_top" style="text-decoration:none"> » Aim Icons</a></font></div></td> |
|
#12
|
||||
|
||||
|
Frames of any type are inappropriate for this purpose. Appropriate technologies are server side includes such as in PHP, Python, PERL, or the web server itself. For a tutorial on SSI look at Apache docs.
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#13
|
|||
|
|||
|
Quote:
It works... so I'm happy.. why isn't it right? |
|
#14
|
|||
|
|||
|
yes server side scripting would be another way of doing things but i feel you should crawl before walking and dakinesoul may not of have server side scripting on his hosting package.
|
|
#15
|
||||
|
||||
|
Quote:
The frame is a client-side-include. If the browser does not support frames, the user will not have access to your links. Most browsers do support frames, but most assistive technology UAs don't. So, your site is not accessible to the handicapped. This may create legal problems. In the U.S., some courts have held that the Americans with Disabilities Act (ADA) applies to web sites. I suppose that some free hosts might not configure for simple SSI, but I cannot imagine using any paid host, no matter how cheap, that did not provide it. cheers, gary |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > HELP! CSS to make side menu? How do I instert css into page? HELP! |
| Thread Tools | Search this Thread |