Jump to content

croatiankid

Members
  • Posts

    332
  • Joined

  • Last visited

Posts posted by croatiankid

  1. Prateek's code was slightly incorrect. change "align" to "text-align".Here is a fully w3c valid html 4.01 strict document

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><title>Page title here</title><style type="text/css">p.center{text-align:center;}</style><p class="center"><a href="whatever_you_want_to_link_to.ext"><img src="image1" alt="alternative text"></a><a href="whatever_you_want_to_link_to.ext"><img src="image2" alt="alternative text"></a><a href="whatever_you_want_to_link_to.ext"><img src="image3" alt="alternative text"></a><a href="whatever_you_want_to_link_to.ext"><img src="image4" alt="alternative text"></a></p>

  2. relative is relative to where the element would normally appear, if positioning were not used. for example if you give something position:relative;left:5px;, it will appear 5 px to the right of where it would normally appear

  3. CSS :
    img {margin: 0 auto;text-align:center // for older browsers}

    or in-line:

    style="margin: 0 auto; text-align:center;"

    img is inline by default, inline elements are centered via text align.for the purpose you're most likely using it,img{display:block;margin:0 auto;} should do it. depending on your doctype, add "text-align:center;"
  4. actually if you have PHP or any server scripting language installed, you CAN make use of it (on your own computer). however know, that you can't actually have a file with that kind of name in windows. you can declare a variable with it (eg x=5), and if you have a conditional or switch in the php file, it can do something with that.

  5. Unfortunately this means your page is coded in a way that it relies on browsers to be in quirks mode. http://hsivonen.iki.fi/doctype/ is a useful table where you can see which doctypes activate which rendering mode in many browsers. You'll get the same effect using

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

    and no doctype.

  6. I don't think I'd charge more than $400 for that, especially because (I think) it doesn't look right in firefox. But then again it does have flash; since I don't know flash I'd outsource it for most likely under $50.Not to mention using tables for layout, causing each page to load at least twice as much as it should.

×
×
  • Create New...