Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

absolute position

Options
  • 16-06-2006 6:53am
    #1
    Closed Accounts Posts: 238 ✭✭


    hi guys,

    im having some trouble with a table on a website im building, the site is here
    http://www.space95.sc/south/index.html

    the problem table is the one that fits below my banner and has 'deutsch' on the left and the mute options on the right. backround- the client wants sound on his website which i hate doing because i personally think its tacky unless its used for something like this www.2advanced.com The site has to be crossbrowser for obvious reasons so instead of using embed etc i decided to use a small flash. the problem is that if i simply insert this flash into my table, it resizes and i end up with a table twice the height which looks bad. i set height but it still moves. as a temporary fix i used absolute position but i cant use it for the final product as if you look at the site with opera or firefox, the flash is out of line, not to mention what different screen resolutions do to it. anyone got any guidance on how i could fix this problem? :(


Comments

  • Registered Users Posts: 3,594 ✭✭✭forbairt


    Not going to comment on tables ... not going to comment on your code .. but anyways .... does this do the job for you ?
    <tr bgcolor="#6699ff"> 
                    <td colspan="6"> 
    <div><img src="index_files/deutsch.jpg"><a href="http://www.space95.sc/indexd.html"> deutsch</a></div>
    </td><td colspan="3"> 
    <div>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" height="15" width="90">
    <param name="movie" value="img/sound.swf">
    <param name="quality" value="high">
    <embed src="index_files/sound.swf" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="15" width="90">
    
    </object></div>
                    </td>
                  </tr>
    


  • Closed Accounts Posts: 238 ✭✭7aken


    hi error9,
    so i obviously havent been doing this long, but seriously any criticism appreciated, what have i done wrong?


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    heh you have done nothing wrong - its just error9 doesnt like tables - he/she is more a div person


    however some of your table coding is very bad - using height attributes in a table, missing <tr> tags and some alt tags missing from images - it all goes towards page validation (http://validator.w3.org/) - if you are interested in adhereing to that


  • Registered Users Posts: 3,594 ✭✭✭forbairt


    Not a fan of tables :P as Ph3n0m says ... :) though I won't be making comments on them in future unless they are badly done ... as Ph3n0m pointed out the new w3 guidelines ... which I disagree with but anyways ... :)

    I'm a fan of clean code .. get your self a validator plug in for firefox .. I find its easiest ... then you'll see things like the following ...

    line 1 column 1 - Warning: missing <!DOCTYPE> declaration
    line 1 column 1 - Warning: <style> isn't allowed in <html> elements
    line 38 column 5 - Warning: <embed> is not approved by W3C
    line 39 column 5 - Warning: discarding unexpected </embed>
    line 55 column 17 - Warning: missing <tr>
    line 78 column 17 - Warning: missing <tr>
    line 81 column 21 - Warning: <embed> is not approved by W3C
    line 82 column 21 - Warning: discarding unexpected </embed>
    line 113 column 21 - Warning: <embed> is not approved by W3C
    line 114 column 21 - Warning: discarding unexpected </embed>
    line 41 column 1 - Warning: <table> proprietary attribute "bordercolor"
    line 55 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 55 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 58 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 58 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 61 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 61 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 64 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 64 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 68 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 68 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 71 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 71 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 74 column 17 - Warning: <td> attribute "align" has invalid value "middle"
    line 74 column 17 - Warning: <td> attribute "valign" has invalid value "center"
    line 86 column 31 - Warning: <img> lacks "alt" attribute
    line 90 column 15 - Warning: <tr> proprietary attribute "height"
    line 92 column 37 - Warning: <img> lacks "alt" attribute
    line 105 column 7 - Warning: <table> proprietary attribute "height"
    line 108 column 13 - Warning: <table> proprietary attribute "height"
    line 108 column 13 - Warning: <table> proprietary attribute "valign"
    line 123 column 13 - Warning: <table> attribute "bordercolor" had invalid value "6699FF" and has been replaced
    line 123 column 13 - Warning: <table> proprietary attribute "bordercolor"
    line 126 column 39 - Warning: <img> lacks "alt" attribute
    line 129 column 39 - Warning: <img> lacks "alt" attribute
    line 132 column 39 - Warning: <img> lacks "alt" attribute
    line 136 column 13 - Warning: <img> lacks "alt" attribute


  • Closed Accounts Posts: 238 ✭✭7aken


    thanks guys!!


  • Advertisement
Advertisement