F-Man
-
Posts
222 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by F-Man
-
-
Every cells in a column must always have the same width, or else it wouldn't be a column. So giving a width of X pixels to a cell and a width of Y pixels to another cell in the same column will not work. The only way to work around this is to make your cell span to more than just one column using colspan="2" (for 2 columns, for example).
-
Here's the correct full code (using wmode as an attribute works in Fx but is invalid and doesn't seem to work in IE).
<object data="site.swf" type="application/x-shockwave-flash" width="600" height="400"><param name="movie" value="site.swf" /><param name="wmode" value="transparent" />Alternate content goes here.</object>
Make sure your flash is called site.swf or change both the values of the data and the first param to match with your flash file. If it still doesn't work, post what browser and version you are using.
-
Yes.The name attribute is for: input, select, textarea, object (you should still use id though), meta and param. The rest uses unique ids.
-
Hm, I put tons of attributes that Macromedia recommends but seeing as how IE and Fx seemed to have problems with them, I edited my post and removed them. Have you tried the code exactly as it is right now in my post? Because this is working great for me.
-
Just regular HTML.Something like this:
<object data="site.swf" type="application/x-shockwave-flash" width="600" height="400"> <param name="movie" value="site.swf" /> Alternate content goes here.</object>
-
You're missing the DTD URI. It should be this:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
By default. .html and .htm extensions are text/html (yes even if your document is XHTML 1.0) and .xhtml and .xht extensions are application/xhtml+xmlFor serving a working MIME type depending on the browser, I use this PHP script (use a .php extension of course):
<?phpif(stristr($_SERVER["HTTP_ACCEPT"],'application/xhtml+xml')) { header('Content-Type: application/xhtml+xml; charset=UTF-8'); echo '<?xml version="1.0"?><?xml-stylesheet href="style.css" type="text/css"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>';}else { header('Content-Type: text/html; charset=UTF-8'); echo '<!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> <link rel="stylesheet" href="style.css" type="text/css" />';}?> <title>Title</title></head><body></body></html>
Though it can also be done through your .htaccess file which is better, but I don't know how.
-
Just remove float: bottom. There's no need to have that, since it will appear by default where you specified it in your HTML.
-
CSS
in HTML/XHTML
background-image: pictures/blackmarble3.gif;should bebackground-image: url(pictures/blackmarble3.gif);Also, there is no properties called "link" and "vlink". I think you meant "a:link" and "a:visited".
-
Only as an XML language, not supported by IE.SmokingMan, that must be because you don't have QuickTime set as the browser plugin to read sound like me... Stupid WMplayer. I don't know what you could do, but there's probably a way around it.Better use XHTML 1.1. Differences from XHTML 1.0 Strict:No more lang attribute, removed in favor of xml:lang (same thing).No more name attribute, removed in favor of id (same thing, better because shorter).Shorter doctype. Maybe other diffs, but a few. -
<object data="america2.midi" type="audio/midi">Audio could not be read</object>
The type attribute is optional but some browsers need it as far as I know.The embed tag has never been part of any HTML specification by the way.
-
You're probably using a Strict DTD in which case presentation elements are unvalid. Give a class or ID to a div and center that div instead.
.class { text-align: center;}or#id { text-align: center;}
<div class="class"></div> or <div id="id"></div>A certain ID can only be used once in a page and should be used on medium-large chunks in your page. Classes are for multiple lesser-important elements on your page.
-
Very wrong.Link: Unordered lists: more than just bulletsLists can easily be styled to look anyway you want them.I think your problem is that you built the nav bar in <ul><li> tags...this for bulleted lists not menus. -
li { display: inline;}
This is great because you can still use margins on your list items even when inline.
-
He fixed the rel="icon" thing. Yay!
-
Extensible Markup Language.Ex is pronounced like X so...
-
<hr> styles
in CSS
Nope, just use margins as usual. Also, I think you meant "in the style attribute" which is wrong. CSS can always be used in an internal or external stylesheet. The style attribute should be discouraged.BTW, S@m was very right in recommending the use of borders. Most of the time you'd save yourself a lot of time using CSS borders especiall when it is for presentation.P.S. The <hr> tag assumes the center alignment - the ONLY way around that was to do this "position:absolute; left:5px;" in the style tag. -
No no, your icon is up there and I could download it fine by going to its URL.
-
The rel value of the <link> tag should be "favicon", not "icon" (correct me someone if I'm wrong).Also, the ad on your page adds HTML before the head and body elements are even opened. This may be a reason for it not working.
-
Don't use XHTML 1.1 with a text/html media type.(code) -
Div Height
in CSS
html, body, #thumbnails { height: 100%;}
That should work.
-
If using Apache, look in the configuration file.
-
Have you converted the font to an EOT file like I said?Thanks for the answers,But I didnt myself write the above codes. The codes I gave above are completely copied from "www.w3.org"F-Man,Maybe I am doing it right way, but the document still shows up with default fonts :-\ -
Help!
in HTML/XHTML
There's nothing stopping you from using headings and paragraphs inside your divs.
<div style="position: absolute; top: 155px; left: 355px; color:#ffffff"> <h2>:_:News:_:</h2> <p>___________________________________________</p></div><div style="position: absolute; top: 155px; left: 48px; color:#ffffff"> <h2>:_:Quotes:_:</h2> <p>__________________________________</p></div>
For the scroll bars, try <div style="position: absolute; top and left blah blah; width: XXpx; height: XXpx; overflow: scroll;">
css background image
in CSS
Posted
All three ways are correct.