Results 1 to 2 of 2

Thread: Total newbie needs help with scripting! What would you suggest?

  1. #1
    jamie89 Guest

    Total newbie needs help with scripting! What would you suggest?

    Hey everyone! I am an acting student and am working on creating my website. I feel as though the layout I want is pretty simple, but I can't figure out the best way to go about coding it. I used to design websites yeeeears ago, and remember using iframes (ancient, huh?!) I see that CSS is suggested now, but have no idea what to do.

    I have an image at the top, links on the left, and have the content show up to the right of the links when they're clicked on. I am having trouble figuring out how to get the content to show up. I am familiar with how to do this with iframes but...I don't want to use them for obvious reasons! Here is a link to the basic layout (URLs not working...) : http://jamieamos.net/home.html

    I hope you can help!

  2. #2
    Join Date
    May 2009
    Location
    England
    Posts
    165
    Hello Jamie89,

    Well done for steering clear of frames of any sort ... they won't help your website as it's sounds pretty straight forward.

    To get the layout right you need to use a combination of STYLE and DIVs. Here's an example:

    <html>
    <head>
    <style>
    #header{
    height:100px;
    background:red;
    }
    #menu{
    float:left;
    width:200px;
    height:400px;
    }
    #content{
    float:left;
    }
    </style>
    </head>
    <body style="margin:0px; padding:0px;">
    <div id="header"><img src="yourlogo.gif" /></div>
    <div id="menu">
    <a href="index.html">Home</a><br />
    <a href="aboutme.html">About Me</a><br />
    </div>
    <div id="content">
    YOUR CONTENT GOES HERE
    </div>
    </body>
    </html>

    I would recommend http://www.w3schools.com to get your going but hopefully the above template should give you an insight into how CSS and HTML work together to provide layout. Obviously it's horrible and garish ... but then things that take less than 5 minutes to write often are!

    Good luck with it and come back to us if you need to.

    Regards,


    David

Similar Threads

  1. Control your CSS DDM L1 link when IE 5&6 scripting disabled!
    By djlebarron in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 13 Apr 2009, 09:09 PM
  2. Passing Variables (php to js to php)
    By aazad in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 02 Oct 2008, 07:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •