F-Man
-
Posts
222 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by F-Man
-
-
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".
-
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.Generally developers will say always combine the body and html attributes into one css tag, like:body, html{ la dee daaaa} -
music
in HTML/XHTML
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.
-
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.
-
No inline elements directly into the body, guys. Also: CSS margins, not line breaks.
-
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...
-
vertical line
in ASP
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;}
-
It's possible with CSS3
selector { content: "String";}
But don't expect good browser support. The only browser I know that supports this is Opera.
-
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}
-
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.
-
I'll be the first one to suggest the onsubmit attribute.
-
Though you should use names in forms, not ids.
-
Write your links in the body and use CSS "display: none" to your links. Then use JavaScript to change the display (see DHTML tutuorial).
-
sivant, please post your cursor file so we may test it. Maybe it's corrupted?
-
Because it's not part of the tutorial, it's part of the CSS2 reference. Go there and scroll down to cursor.Can someone tell me why is the above page isolated and it's not visible in the CSS tutorial? What other "easter eggs" are there in this site?!?! -
Your code looks fine. Just remember that IE sucks and only supports :hover on anchors.
-
Help
in HTML/XHTML
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.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... -
This tag is not part of any HTML recommandation. Same for its attributes.
-
Read CSS How To.
-
No need for a table... You can use CSS to apply a background to any element.Like for paragraphs you could do this:
p { background-color: yellow;}
-
iframes are dead! Use <object data="file.htm" type="text/html" width="XX" height="XX">Your browser is too old</object>
-
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.
-
Better yet, <object>s.2- yes, google for <iframe>'s -
Both work in IE, yes. But the latter is correct syntax one.I find that both work as long as you use onclick="this.style='blahblah' "Don't mix ' and "...
Get e-mails for new post/responses
in Suggestions
Posted
There is an "Enable email notification of replies" checkbox below the reply textarea.