Jump to content

Jammy_Stuff

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by Jammy_Stuff

  1. Sorry. I just managed to work it out myself by also adding a #main in addition to the #menu within #outer and setting widths for them both. It does seem alot of code though. Any better way?

  2. I'm trying to make a menu that goes on the right of my website. Here is the stylesheet that I'm using and this is is an example page. As you can see, the menu gets pushed down as content is added to the page.Can anyone help me? (Just incase it changes anything, a logo image will be on the final site, at the top, using the #logo class. The menu will need to go below this.)

  3. I'm currently working on a new design for my website and I'm going for a two tone idea. I have centered the content of the page and made it 780px wide. I want the center bit to be a different color to the rest. Here is the code currently:body{background-color:#333333;color:#999999}h1, h2{text-align:center;}#outer{width:780px;background-color:#000000;margin:auto;}The problem is, when a page is less tall than the monitor, I just get a gray background with a black box in it (when I want sort of a black stripe in the middle and a gray stripe on either side.Any ideas?

  4. Here's the contents of my index.html file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html><head><title>Welcome to James' Site</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /></head><frameset cols="20%,80%" frameborder="0"><frame marginwidth="0" noresize="noresize" src="navigation.html" /><frame marginwidth="0" noresize="noresize" src="home.html" name="mainframe" /><noframes><body>Your browser does not support frames. <a href="http://www.mozilla.com/firefox/">Get Firefox!</a></body></noframes></frameset></html>

    This works in firefox but in IE there is still a border on the frames. Also, it doesn't validate. I tried that thing about putting frameborder="0" in the frame tag rather than the frameset. That validated, but had borders in every browser. So it was totally pointless.

  5. Is this what you mean? the menu was already on the left hand side for me :)
    It is that code yes. What I mean is that I want to have the bar on the left and the page directly to the right.For example, it shows up like this:navnavnavnavpage page pagepage page pagepage page pagepage page pagepage page pageI want it to show up like this:nav page page pagenav page page pagenav page page pagenav page page page-----page page pageIs there a way to do it?
  6. My website has a navigation frame on the left, and the page on the right. It is done in XHTML frameset. I used to have an annoying border or the frames. I added the attribute:

    frameborder="0"

    Now, the annoying border doesn't appear in firefox but it still does in IE. Also, the website fails validation as the attribute doesn't exist. Is there any way that I can get it to validate (preferably also getting it to work in IE).If there isn't a way to get it to work in IE, I'll just add a note that the page works best in Firefox :).

  7. My site is finally beginning to come together but I don't think much of the nav bar (a frame to the left of the main page full of images). I was thinking of doing one where for example you could have
    HomeNewsReviewsForum
    When you click one of these, it goes to the page it is linked to. However if for example you hover the mouse over news, another vertical bar pops out to the right of news saying December 05, January 06 etc.What I want to know is can this be done in javascript, is it a good choice and how do I do it?
  8. Shame I really don't know PHP. I went through the tutorial here but it didn't tell me how to do much.[Edit: Can someone give me a hand? I found the dbase commands but I don't know how to use them]

  9. I was wondering if it would be possible to make a page where I could write client details to and read client details from a database? I guess the database would be an SQL one and the laguage would have to be PHP.Anybody know if this is possible?

  10. Thanks. That sorted out the encoding error. Seeing as I'm getting the same errors in both I'll post up the current code of the navigation.html file:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"><html><head><title>Welcome to James' site</title><link rel="stylesheet" type="text/css" href="navigation.css" /><meta http-equiv="content-type" content="text/html; charset=utf-8" /></head><body><a href="home.html" target="mainframe">Home</a></body></html>

  11. Okay so I'm making my first website and I've come to a problem when validating. I have three html files on my site so far. One is index.html which contains two frames and navigation.html and home.html which open in the frames.When I validate http://www.james-wheatley.co.uk/index.html using validator.w3.org, I get a tentative pass with this error:

    No Character Encoding Found! Falling back to UTF-8.    I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.    Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
    I get that error with all three files.With navigation.html and home.html, I get failures due to these two errors:
    Error  Line 7 column 5: document type does not allow element "body" here.<body>The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
    and
    Error  Line 10 column 6: end tag for "html" which is not finished.</html>Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
    Can anybody lend me a hand as it's got me stumped.
×
×
  • Create New...