Reply
 
Thread Tools
Old 28-04-2004, 01:26 AM   #1   [permalink]
mi6mania
Executive Member
 
mi6mania's Avatar
 
Join Date: 24 Aug 2001
Location: Australia / Sydney
Posts: 372
basic html

heya haven't posted in here for yonks

ahahah...

i'm wondering how do we stick an image smack bang in the middle of the window...

no matter how you stretch the screen, the image would always be in the middle... not just center, but also vertial center.. is this possible..
__________________
Watashi-wa baka-des!, Anata-wa Baka des ka?
mi6mania is offline   Reply With Quote
Old 28-04-2004, 01:35 AM   #2   [permalink]
GuGuEaTeR
Forum Master
 
GuGuEaTeR's Avatar
 
Join Date: 29 Dec 2001
Location: Stratosphere
Posts: 2,271
Send a message via AIM to GuGuEaTeR Send a message via MSN to GuGuEaTeR
It is indeed possible. Let me give you a code...

Code:
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle"><img src="someimagefilenamehere.png"></td>
  </tr>
</table>
Should do the trick.
__________________
mplayer > * media players, period.
GuGuEaTeR is offline   Reply With Quote
Old 28-04-2004, 05:58 AM   #3   [permalink]
mi6mania
Executive Member
 
mi6mania's Avatar
 
Join Date: 24 Aug 2001
Location: Australia / Sydney
Posts: 372
lol.. man thats soo simple ><
why i didn't i think of that...
now on to more advance coding....

thanks btw
__________________
Watashi-wa baka-des!, Anata-wa Baka des ka?
mi6mania is offline   Reply With Quote
Old 28-04-2004, 06:17 AM   #4   [permalink]
mi6mania
Executive Member
 
mi6mania's Avatar
 
Join Date: 24 Aug 2001
Location: Australia / Sydney
Posts: 372
lol... okies lets change the above requirments.... hehehe
i want to get a table right smack bang in the middle, with x and y dimenions... is it possible??
__________________
Watashi-wa baka-des!, Anata-wa Baka des ka?
mi6mania is offline   Reply With Quote
Old 28-04-2004, 09:24 AM   #5   [permalink]
GuGuEaTeR
Forum Master
 
GuGuEaTeR's Avatar
 
Join Date: 29 Dec 2001
Location: Stratosphere
Posts: 2,271
Send a message via AIM to GuGuEaTeR Send a message via MSN to GuGuEaTeR
Wooh, that's a tough one. AFAIK there aren't any way to put an image or table in the middle without using another table. So the only way you can do this is;

Code:
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle"><table width="123" height="123" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>Blah Blah</td>
        </tr>
      </table></td>
  </tr>
</table>
If anyone else has a better idea with using only one pair of table tag then do tell.
__________________
mplayer > * media players, period.
GuGuEaTeR is offline   Reply With Quote
Old 28-04-2004, 11:42 AM   #6   [permalink]
Nulani
Forum Master
 
Nulani's Avatar
 
Join Date: 16 Dec 2000
Location: Norway.
Posts: 6,840
Send a message via ICQ to Nulani Send a message via AIM to Nulani Send a message via MSN to Nulani Send a message via Yahoo to Nulani
W3Schools: Very nice to learn HTML School.
__________________
Evil is Good.
Evil.
Nulani is offline   Reply With Quote
Old 30-12-2009, 02:29 PM   #7   [permalink]
alton
Junior Member
 
Join Date: 28 Dec 2009
Posts: 3
HI guys. Why everybody want complicated code.
If our need is fulfil with simple coding why one need difficult way to do so.
alton is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Total Newb to HTML AchtungAffen HTML, PHP, MySQL, Graphics, Coding 11 21-05-2003 04:34 PM
I cannot use html Sigurd Fatima Contact Admin Archive 3 21-01-2003 12:31 AM
html Larisha UDG Contact Admin Archive 11 16-07-2002 09:29 AM
HTML Help Please AnimeWishes HTML, PHP, MySQL, Graphics, Coding 9 19-10-2001 08:39 PM


New To Site? Need Help?

All times are GMT -4. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.