This is a discussion on "Help with Valign="middle, but still valid" within the Web Page Design section. This forum, and the thread "Help with Valign="middle, but still valid are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help with Valign="middle, but still valid
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help with Valign="middle, but still valid
I can't seem to get a simple solution to work, that is both working and w3c valid.
Problem: "to make a 450px tall box center on any page/ monitor size and res." If you look at these two examples > http://www.sightdeezygn.com/dev3/ "test-a" does what I need done, but it only works with no document type therefore will not validate. "test-b" Validates clean (with doc type Xhtml 1.0 trans).. It seems to be one or the other ? I really need this to work, If anyone can help I would be indebted. Please "Know" that your (if any) suggested fixes works or test it first. I have allready spent tons of time on this little "buggah" so remember the solution needs to work and it needs to validate clean. |
|
|
|
||||
|
Re: Help with Valign="middle, but still valid
I dont think a solution has ever been found to this.....
Vertically center a box on screen without tables using valid markup..... nope, can't be done currently cross browser, but I would LOVE to be proved wrong.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Help with Valign="middle, but still valid
Rob :
Thankz for the vote of confidence lol Nobody said anything about it having to be "tableless" I used one big fat table on each of the above mentioned examples. I may have found a solution though, it happens to be tableless though After I get some coffee down my gulet, I will try, if successful I will be back to post the solution I found (shortly I hope) |
|
|||
|
Valign="css wins out"
I just tested and felt my way around,
and it turns out (wanting to avoid them anyway) Tables were not the answer, at least not for me and this situation. I went with the just off center (-neg margin of 1/2 the page dimension) "absolute" positioning. index-a.html: http://sightdeezygn.com/dev3/test-a.html No doc type, but the <tr vertically centers fine. But it wont validate with no doctype. index-b.html: http://sightdeezygn.com/dev3/test-b.html Has a doc type and validates, but.. It breaks the vertical centering effect of valign="middle" in the table markup. index-c.html: http://sightdeezygn.com/dev3/index-c.html Is not just valid xhtml 1.0, but a css tableless solution tah boot! |
|
||||
|
Re: Valign="css wins out"
Quote:
Maybe you should turn this into a tutorial and submit it to our articles section.... it would make a very nice addition.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: Help with Valign="middle, but still valid
Hmm "mac IE"
didn't view it in that <-- busts out the old "bubble" imac /hmm tutorial..... maybe web forumz would also like >> http://www.sightdeezygn.com/if-blog/e1.html http://www.sightdeezygn.com/if-blog/e2.html /wonders where would they be posted? they need to be reskinned etc, what is the accepted format for a tut' submission? |
|
||||
|
Re: Help with Valign="middle, but still valid
Hi... you can submit them in Standard HTML!
Maybe they need a little more explaination at the start... an introduction.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
moojoo created something like this in css.
Take a look at his site, http://www.moojoocreative.com/samples/centered_3_col/ and of course his design is Valid XHTML 1.0 Strict! Nice! |
![]() |
| Tags |
| help, valignquotmiddle, but, still, valid |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a "tag" system to find relevant "related" pages | MrQuestions | PHP Forum | 3 | Mar 20th, 2008 23:06 |
| [SOLVED] Show "Image" Depends On User "Status"? | Monie | Classic ASP | 6 | Oct 16th, 2007 01:22 |
| ? IS "meta name="robots" content="?" necessary in pages ? | Love2Java | Starting Out | 6 | Aug 8th, 2007 13:48 |
| window.opener.document["nameForm"].getElementById("someid").value; doesnt work | drpompeii | JavaScript Forum | 0 | Feb 17th, 2007 23:09 |
| valign="middle" help please | Sym0n | Web Page Design | 1 | Apr 30th, 2006 21:04 |