• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick HTML question

stultus

Golden Member
I have a small pic I want to be in the center of the web browser window. The center command works fine for the horizontal, but how do you do it vertically (without using hard carriage returns)?
 
The way I've done it before is to center it vertically in a table with the height set to 100% There are probably other ways to do it, but that's worked for me.
 
you would have to use percentages, since the resolution of the monitors it's going to be viewed on will vary.
 
Originally posted by: Trygve
The way I've done it before is to center it vertically in a table with the height set to 100% There are probably other ways to do it, but that's worked for me.

Err, it's been a while since I've touched HTML.
 
Originally posted by: Trygve
The way I've done it before is to center it vertically in a table with the height set to 100% There are probably other ways to do it, but that's worked for me.
Yep, and then valign=middle.
 
Back
Top