|
-
Dec 13th, 2005, 02:22 PM
#1
Thread Starter
Hyperactive Member
troubles with vertical alignment
Hello everyone,
I'm back here, as I usually am every few months, with a problem I need help with.
This should be very very easy, I have been searching the web, these boards, but I cannot solve this.
Plese take a look at www.medinaconsultants.com
All I need to do is center the white horizontal area vertially on the page. That's it...
However, nothing I try works. Somebody please help!!!!
-
Dec 13th, 2005, 07:31 PM
#2
Fanatic Member
Re: troubles with vertical alignment
pad the css box at the top til you get it centered..
kai
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Dec 13th, 2005, 09:30 PM
#3
Fanatic Member
Re: troubles with vertical alignment
that's what I was thinking, put some line breaks until it looks centered.
-
Dec 13th, 2005, 10:56 PM
#4
PowerPoster
Re: troubles with vertical alignment
You can either use a Table or CSS. Tables you can just set the valign property and your away, but I don't think its validate HTML4 strict or XHTML.
The CSS way...I believe involves alot of hacks, as vertical-align is for use with Tables, not text.
-
Dec 14th, 2005, 06:32 AM
#5
Fanatic Member
Re: troubles with vertical alignment
do u mean make the white area in align center??
-
Dec 14th, 2005, 07:53 AM
#6
Thread Starter
Hyperactive Member
Re: troubles with vertical alignment
hi guys, thanks for the responses
adding linebreaks wont do the trick, as this will look different in different resolutions
can't really use tables (at least the way I tried), because i can't manage to set the table's height to 100% of the window. height="100%" doesn't seem to do the trick..
hmmm, what are hacks? what should i look into in css to take care of this?
thanks!
kenny_o: I mean align the white space vertically within the browser window
-
Dec 14th, 2005, 03:27 PM
#7
PowerPoster
Re: troubles with vertical alignment
style="height:100%" should give it a height of 100... the height property only works for IE.
HTML Code:
<table style="height:100%">
<tr>
<td valig="middle">
MIDDLE ME!
</td>
</table>
Its not a great way of doing it, but it works. 
As for CSS versions..
http://www.jakpsatweb.cz/css/css-ver...-solution.html
Theres a few different ways of doing it.
-
Dec 15th, 2005, 09:07 AM
#8
Thread Starter
Hyperactive Member
Re: troubles with vertical alignment
Aha, I use Firefox primarily, so that would explain why I had troubles with that.
Will look into that link.
Thanks!
-
Dec 16th, 2005, 01:50 PM
#9
Fanatic Member
Re: troubles with vertical alignment
This code will work in all broswers, just might take a bit of tweaking with the size to get it aligned in opera, firefox and IE and safari.
CSS CODE
Padding: 5px 0px 0px 0px;
I think this is right to pad the top out, if not play with all four of them to do so.
this wil lwork
ta
Kai
As the information I give is useful in its nature, consider using the RATE POST feature located on the bottom left of this post please..
A few things that make a good Developer a Great One.
Methodical and a thorough approach to research and design inevitably leads to success.
Forward thinking is the key to Flow of control.
Never test in the design environment, always test in real time, you get the REAL results.
CBSE & OOSE are the same animal, they just require different techniques, and thinking.
SEO is a globe of objectives, SE rankings is an end to a means for these objectives, not part of them.
The key to good design is explicit attention to both detail and response.
Think Freely out of the "Box" you're in..... You will soar to better heights.
Kai Hirst - MSCE, MCDBA, MCSD, MCP, MCAP, MSCT
-
Dec 17th, 2005, 01:52 AM
#10
PowerPoster
Re: troubles with vertical alignment
Yeah, but it won't work if the user has a different screen size though will it? 1024, 800,640... center is going to be different for each of them so you can't use a fixed measurement for the job.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|