Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11

    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. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2004
    Location
    uk
    Posts
    1,347
    Rep Power
    12
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11

    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.


    Originally Posted by sidney
    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
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2004
    Location
    uk
    Posts
    1,347
    Rep Power
    12
    post your code and i may be able to help more
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11
    Maybe It's a template I want to use. how?
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11

    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.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2004
    Location
    uk
    Posts
    1,347
    Rep Power
    12
    i still need to see code
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2004
    Location
    uk
    Posts
    1,347
    Rep Power
    12
    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.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11
    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.
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    40
    Rep Power
    0
    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.
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    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">&nbsp;&raquo;
    Aim Icons</a></font></div></td>
  22. #12
  23. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    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.
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    37
    Rep Power
    11
    Originally Posted by kk5st
    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
    It works... so I'm happy.. why isn't it right?
  26. #14
  27. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Feb 2004
    Location
    uk
    Posts
    1,347
    Rep Power
    12
    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.
  28. #15
  29. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    It works... so I'm happy.. why isn't it right?
    Using (i)frames to stand for server-side-includes leads to problems. The frame content is a separate document, and usually not read by search engines. Since it's not read, the links are not indexed.

    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
    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.
Page 1 of 2 12 Last
  • Jump to page:

Similar Threads

  1. Centering an entire page in CSS?
    By liquidspaces in forum CSS Help
    Replies: 8
    Last Post: October 30th, 2003, 07:56 AM
  2. Sockets, Network Progging, etc...
    By infamous41md in forum C Programming
    Replies: 28
    Last Post: April 22nd, 2003, 08:46 PM
  3. Problem creating small menu based on prev/next
    By Reptilian Feline in forum PHP Development
    Replies: 4
    Last Post: March 21st, 2003, 02:54 AM
  4. PosgreSQL installation error on windows
    By ggnanaraj in forum PostgreSQL Help
    Replies: 2
    Last Post: November 18th, 2002, 06:51 AM
  5. CSS: need help with a menu seperator
    By baddy in forum CSS Help
    Replies: 2
    Last Post: October 27th, 2002, 10:57 PM

IMN logo majestic logo threadwatch logo seochat tools logo