Question regarding HTML

etalns

Diamond Member
Dec 20, 2001
6,513
1
0
Hi, I got a quick question. Well, two.

Does anyone know of a forum liek anandtech for website designers? I've looked and all I can find are forums with posts from October :(

Just lookign for a place with alot of experienced web designers

My question is this

I own a website which can be seen here and as you can see I have taht logo in the middle, I was wondering how I Can make it centered for everyone regardless of resolution. Currently it is only centered if you are on 1024 x 768 resolution adn the window is fully maximixed. Is this posisble?

Thanks in advance
 

rh71

No Lifer
Aug 28, 2001
52,844
1,049
126
Use a percentage for width instead of pixels. For instance:

<DIV ALIGN="CENTER">
<TABLE WIDTH="100%" BORDER="0">
<TR><TD ALIGN="CENTER"><img src="logo.gif" width="307" height="55"></TD></TR>
<TR><TD ALIGN="CENTER"><font face="Verdana, Arial, Helvetica, sans-serif">Co<font color="#FFFFFF">Coming soon! </font></font></TD></TR>
</TABLE>
</DIV>

The reason why this works is because it's taking the percentage of the screen instead of a set pixel width. You can use any percentage and it will still be centered... set border=1 to play around.

There are many sites out there for web people. I visit Were-Here Forums the most for that stuff... mostly a Flash help board, but you can see from post counts that it's very popular for all web people... they have an HTML-only section along with site-checks.
 

etalns

Diamond Member
Dec 20, 2001
6,513
1
0
ick, rh71, having some torubles.

I entered that HTML in and it didnt seem to work, is it by any hcance possible you'd be able to re-create the full HTML then repost it. I'd be increidbly grateful, then I can look at it and i'll be able to figure it out for the future. What I need is it for to be in absoloute center, center vertically and horizontally, not just horizontally.
 

DrMoreau

Banned
Dec 1, 2001
266
3
0


<< ick, rh71, having some torubles.

I entered that HTML in and it didnt seem to work, is it by any hcance possible you'd be able to re-create the full HTML then repost it. I'd be increidbly grateful, then I can look at it and i'll be able to figure it out for the future. What I need is it for to be in absoloute center, center vertically and horizontally, not just horizontally.
>>



Just add height=100% along with the width.

Full HTML code:

<HTML>
<HEAD>
<TITLE>Informaca.com</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY bgcolor="#000000" text="#000000">
<TABLE align="center" width="100%" height="100%" border="1">
<TR>
<TD align="center"><IMG src="logo.gif" width="307" height="55">
</TD>
</TR>
<TR>
<TD align="center"><FONT face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF">Coming soon!</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
just think it through... to center it horizonally, you just use the center tag.... to center it vertically, you put it in a table and make sure the vertical align of the cell is set to middle, and the table takes up the whole space. makes sense, no?
 

etalns

Diamond Member
Dec 20, 2001
6,513
1
0
thanks a ton for all your help everyone :)

understand it now, finally eh ;)

Slow guy right here, but thanks...thanks a ton!
 

joinT

Lifer
Jan 19, 2001
11,172
0
0


<< just think it through... to center it horizonally, you just use the center tag.... to center it vertically, you put it in a table and make sure the vertical align of the cell is set to middle, and the table takes up the whole space. makes sense, no? >>



Yes, perfect