Jump to content

F-Man

Members
  • Posts

    222
  • Joined

  • Last visited

Posts posted by F-Man

  1. ul#main{padding:0;margin:0;list-style-type:none;width: 10em;}ul#main a{display: block;text-decoration:none;color:white;background-color:purple;padding:0.2em 0.6em;width: 100%;}ul#second{float:left;width:100%;padding:0;margin:0;list-style-type:none;}ul#second a{float:left;width:10em;text-decoration:none;color:white;background-color:purple;padding:0.2em 0.6em;border-right:1px solid white;}ul#main a:hover, ul#second a:hover {background-color:#ff3300}ul#main li, ul#second li {display:inline}

    <ul id="main"><li><a href="#">Link one</a></li><li><a href="#">Link two</a></li><li><a href="#">Link three</a></li><li><a href="#">Link four</a></li></ul><ul id="second"><li><a href="#">Link one</a></li><li><a href="#">Link two</a></li><li><a href="#">Link three</a></li><li><a href="#">Link four</a></li></ul>

    Hope this helped. Feel free to change the ID names.

    <div>

    A div is well... A division. You have to imagine your page separated into different chuncks, each using a div which you can then use CSS to position the way you want them.

  2. Should be fine. Just make sure that the link brings you to the right page anyway if the user has JavaScript turned off using return false.

    <script type="text/javascript">	function changePage(page) {		document.getElementsByTagName('object')[0].data = page;		return false;	}</script>...<p><a href="page.htm" onclick="return changePage('page.htm')" onkeypress="return changePage('page.htm')">Change page</a></p>

  3. Strong and Em are for emphasize. Like this is <strong>strong</strong> emphasizing. B and I are for presentation which is CSS' job, but you could still use them, for example, to describe the act of using bold and italic text: "Microsoft Word allows you to use <b>bold</b> and <i>italic</i> text".Same thing for big and small. Use big to say things like "Woa, that cat was <big>big!</big>." or "I am <small><small>not</small></small>perfect. :)". These are good content uses for them. If you just want to use small or big text by default for a menu for example, that's where CSS comes in.

  4. I think target is allowed with the Frameset DTD. And we all know frames are bad...Then, you could also use it to open up new windows, but we also know how bad that is. And Javascript is just the way to go on the matter anyway since HTML's job is not to control browser events.So there isn't much need for target right now. We'll be getting XFrames eventually...

  5. You're just changing the value of the checked attribute. The only possible value for that attribute is "checked", so to check it you should use this:document.Register.T1A.checked="checked"The reason the others worked is because only the attribute is necessary (value is useless) in HTML4. To uncheck the box, you need to tell it to drop the attribute completely somehow... Dunno how, sorry. =/

  6. Make sure that your stylesheet (if any) and pages are located in the right directories. Like if you have a link to "pages/page.htm", make sure page.htm is inside of a child directory called pages.

×
×
  • Create New...