Jump to content

F-Man

Members
  • Posts

    222
  • Joined

  • Last visited

Posts posted by F-Man

    css

    Put it all in the CSS. I just looked again and I believe it didn't work for you because you used the background property instead of background-image. However by using only CSS, you should be able to declare all background properties with just "background".EDIT: also, there is no "background-width".

    css

    Generally developers will say always combine the body and html attributes into one css tag, like:body, html{ la dee daaaa}

    Bad idea. If you switch to application/xhtml+xml media type, your background will be used both on the viewport and on the body which will become just a normal rectangle (like a div) around your page content. Only html should be used.
  1. Firefox should work, just set your QuickTime MIME types to read the format you want. Though it is sad that QuickTime is absolutely required. IE uses ActiveX to play music I think...Anyway, if you put music on your page, be sure it is by creating a small player menu where the user decides to play the music or not.

  2. No, inline elements also go in the body, but inside block-level elements.Inline elements (like <a/>) are elements that fit inside a line of text. A block-level elements is one that contains a line break before and after it, like <p/> or <div/>.So here would be a correct way:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>test</title></head><body><p><a href="#target">click here</a></p><p id="target">You have been redirected here.</p></body></html>

    Then this in your CSS

    #target {   margin-top: 40em;}

    Though you usually don't need to use margins. If you use internal links, that should be because there's a lot of text between the source link and its target, not because of a useless margin. :)Also, the name attribute is deprecated in XHTML (except for form elements, <meta/> and <param/>), you should use id instead.And as you could see, using <a> for the target of an internal link is useless. You can apply an id to any element, like to the paragraph I did in my example.

  3. image/x-icon is the MIME type of the icon file. Every file has a MIME type, for example a JPEG image is image/jpeg.However, not all icons have the same MIME type, so make sure you know what you're doing...

  4. Wrong forum. :)But to answer your question, use CSS borders. Like give an id or class to an element and then this code:

    #id {   border-right: 1px solid black;}

  5. I just remembered of an even better way if the content of your cells are anchor links. :) (which I think is the case because they have the class "nav").Use CSS to display anchor links as blocks, and then use :hover on them. This is particularly useful and accessible because then the link is part of the whole cell (assuming it applies margin: 0 by defaut).

    td.nav a {   display: block;   background-color: white;}td.nav a:hover {   background-color: #999}

  6. I'm wondering the same thing. Maybe it's a bug with the validator, though if you really want it to stop complaining, you can use background-color: inherit. Personnaly, I really can't think of a reason you should define a background-color to every selectors with color.

  7. No, no. We don't email you. The point of a forum is that when one person asks a question, everybody can learn from the answer. That way, someone may ask a question no-one's even thought about before, and get their answer here too...Anyway, you can make buttons in more than one way:<input type="submit" value="Text on button" action="file to submit info to" /><input type="button" value="Text on button" onclick="script to be executed" />That last one typically needs a script or HTML DOM...

    That first one is wrong, the action attribute belongs to the form element.Another way to do a button is this: <button>Text</button> Where Text can have differnet markup (like <strong /> etc). Considering all these elements should be in a form, the best to use would be the type="submit" one. Just read about forms here on this site. :)
  8. Put your banner in your main.html page...By the way, do not use XHTML if your page doesn't follow well-formed documents rules for XML (an example would be to have your attribute values quoted), and you should use the Frameset DTD in this case, not the Strict one, and when serving as text/html with .html extension, you have to follow some compatibility guidelines like not including the top xml declaration.

×
×
  • Create New...