Jump to content

F-Man

Members
  • Posts

    222
  • Joined

  • Last visited

Posts posted by F-Man

  1. 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).

  2. 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.

  3. 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.

  4. 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>

  5. 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. :)

  6. 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".

  7. 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.

    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.
  8. <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. :)

  9. 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.

  10. 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.

    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.
  11. 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.

  12. 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;">

×
×
  • Create New...