Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-29-2006, 08:51 AM   #1
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
XHTML sucks

Why did they leave out the "height"-tag?
Retards.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 08:52 AM   #2
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
That's what CSS is for
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 08:53 AM   #3
polish_aristocrat
Too lazy to set a custom title
 
Join Date: Jul 2002
Posts: 40,377
heh this thread aitn for me
__________________
I don't use ICQ anymore.
polish_aristocrat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 08:53 AM   #4
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by StuartD View Post
That's what CSS is for
You sure about that?
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 08:56 AM   #5
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
but they left "width"?

sounds fishy, maybe you typed it wrong
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 08:58 AM   #6
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by dvd316 View Post
but they left "width"?

sounds fishy, maybe you typed it wrong
No. I mean, height does work with css. (like height:320px) BUT height:100% does NOT work. ie. the percentages no longer work with css or XHTML.
which kinda sucks. Now I'm back to using HTML :P
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:00 AM   #7
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
Quote:
Originally Posted by TeenGodFather View Post
No. I mean, height does work with css. (like height:320px) BUT height:100% does NOT work. ie. the percentages no longer work with css or XHTML.
which kinda sucks. Now I'm back to using HTML :P
LOL.. OK got ya

Yep, I find myself going 'old school' HTML quite often. Good thing I learned all that code by manually typing it in notepad for all those projects.

Have fun
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:01 AM   #8
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
No. I mean, height does work with css. (like height:320px) BUT height:100% does NOT work. ie. the percentages no longer work with css or XHTML.
which kinda sucks. Now I'm back to using HTML :P
No, it works, but it works differently to how you're probably trying to use it.
height: 100% will make it the height of its element/parent element, not cause it to fill the entire page or some empty area that height="100%" in a table would, for example.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:04 AM   #9
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
No, it works, but it works differently to how you're probably trying to use it.
height: 100% will make it the height of its element/parent element, not cause it to fill the entire page or some empty area that height="100%" in a table would, for example.
Not true. Have you tested it?

ie. in styles:
body, html {height:100%;margin:0px}
table.lala {height:100%}

in xhtml document:

<html>
<body>
<table cellspacing="0" cellpadding="0" class="lala">
<tr><td></td></tr>
</table>
</body>
</html>

..and you claim that'd work?
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:05 AM   #10
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
Not true. Have you tested it?

ie. in styles:
body, html {height:100%;border:0px}
table.lala {height:100%}

in xhtml document:

<html>
<body>
<table cellspacing="0" cellpadding="0" class="lala">
<tr><td></td></tr>
</table>
</body>
</html>

..and you claim that'd work?

no ?
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:06 AM   #11
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
No, it works, but it works differently to how you're probably trying to use it.
height: 100% will make it the height of its element/parent element, not cause it to fill the entire page or some empty area that height="100%" in a table would, for example.
or do you mean that because there's nothing to fill with 'table' tag in my above statement that's the reason it doesn't fill the screen? Well, no shit. In other words it doesn't work.

I specified the body to have 0 margin = screen full of emptiness to be filled, so why doesn't the table height 100% fill it? Since body is basically the parent-tag of table, no?
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:08 AM   #12
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
or do you mean that because there's nothing to fill with 'table' tag in my above statement that's the reason it doesn't fill the screen? Well, no shit. In other words it doesn't work.

I specified the body to have 0 margin = screen full of emptiness to be filled, so why doesn't the table height 100% fill it?
I mean exactly what I said: It works, but not in the way you're trying to use it
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:13 AM   #13
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
I mean exactly what I said: It works, but not in the way you're trying to use it
Well, it doesn't work then.
OR, let me know how I can make a table span the length of a screen regardless of the resolution. If you can't tell me that, then CSS+XHTML is lacking.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:16 AM   #14
dozey
Confirmed User
 
dozey's Avatar
 
Join Date: Nov 2004
Location: Moonland
Posts: 552
can somebody help me with my frameset please?
dozey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:19 AM   #15
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
Well, it doesn't work then.
OR, let me know how I can make a table span the length of a screen regardless of the resolution. If you can't tell me that, then CSS+XHTML is lacking.
Only thing lacking here is a google search or a trip to WC3.org
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:21 AM   #16
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
Only thing lacking here is a google search or a trip to WC3.org
I hope you're kidding.. as if I haven't checked both. I can only assume you *think* you can make it work, but I'd like to see.. as it doesn't.
You can't make valid XHTML + valid CSS and get a table spanning 100% of the document size.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:29 AM   #17
dozey
Confirmed User
 
dozey's Avatar
 
Join Date: Nov 2004
Location: Moonland
Posts: 552
Table = tabular data, not a layout, they aren't intended to provide the behavior you are after.
dozey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:36 AM   #18
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
I hope you're kidding.. as if I haven't checked both. I can only assume you *think* you can make it work, but I'd like to see.. as it doesn't.
You can't make valid XHTML + valid CSS and get a table spanning 100% of the document size.
I was really hoping YOU were kidding.

http://www.ninjito.com/ohyes.html
http://validator.w3.org/check?uri=ht...2Fohyes.htm l

Wow, a full height table in valid XHTML.
Who would have thought.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:39 AM   #19
dozey
Confirmed User
 
dozey's Avatar
 
Join Date: Nov 2004
Location: Moonland
Posts: 552
I asked you to help with my frameset, not create a table spanning the height of a page in valid xhtml....

loser.
dozey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:41 AM   #20
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Lol. Wtf?
Nice.. however I'm fucking baffled. as I've tried pretty much the exact same thing and I just couldn't make the bitch work.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:41 AM   #21
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863

Last edited by quantum-x; 10-29-2006 at 09:43 AM..
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:43 AM   #22
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Lol. Wtf?
Nice.. however I'm fucking baffled. as I've tried pretty much the exact same thing and I just couldn't make the bitch work.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:44 AM   #23
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by dozey View Post
I asked you to help with my frameset, not create a table spanning the height of a page in valid xhtml....

loser.
Lol. Start your own thread about it, maybe someone would help.
See, I didn't even ask for help. I just said it didn't work, and someone proved me wrong = I got help.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:45 AM   #24
interracialtoons
Confirmed User
 
Join Date: May 2006
Posts: 1,910
Quote:
Originally Posted by quantum-x View Post
I was really hoping YOU were kidding.

http://www.ninjito.com/ohyes.html
http://validator.w3.org/check?uri=ht...2Fohyes.htm l

Wow, a full height table in valid XHTML.
Who would have thought.

CRUEL OWNAGE!!!
__________________
Done.
interracialtoons is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:47 AM   #25
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by interracialtoons View Post
CRUEL OWNAGE!!!
No it's not. It's a page that proves me wrong and I can use that.
No matter how much I'd like to be right every time, I'm not.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:47 AM   #26
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Oh incidentally, if you Google for "xhtml full height" and hit I'm feeling lucky, it shows a / the solution.

;)
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:48 AM   #27
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
No it's not. It's a page that proves me wrong and I can use that.
No matter how much I'd like to be right every time, I'm not.
Nah, it's ownage.
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:49 AM   #28
MaddCaz
Confirmed User
 
Join Date: Mar 2006
Location: Illinois
Posts: 9,483
who nose man...
MaddCaz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:51 AM   #29
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
Nah, it's ownage.
If it makes you feel manly ;)

I actually tried google etc with css xhtml height 100% (not with fullheight).
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:57 AM   #30
MaddCaz
Confirmed User
 
Join Date: Mar 2006
Location: Illinois
Posts: 9,483
Boredom does THIS!
MaddCaz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:24 AM   #31
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by TeenGodFather View Post
If it makes you feel manly ;)

I actually tried google etc with css xhtml height 100% (not with fullheight).

Solutions on the 3rd, 4th and 5th result?
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:32 AM   #32
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by quantum-x View Post
Solutions on the 3rd, 4th and 5th result?
Nothing that actually worked. No idea why really. I tried quite a few times, the only reason I can come up with now in retrospect is that I had a typo somewhere. I was getting fucking fed-up with fucking around it, so I changed to html
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:44 AM   #33
jayeff
Confirmed User
 
Join Date: May 2001
Posts: 2,944
Quote:
Originally Posted by TeenGodFather View Post
Well, it doesn't work then.
OR, let me know how I can make a table span the length of a screen regardless of the resolution. If you can't tell me that, then CSS+XHTML is lacking.
Misunderstanding #1:
In terms of what your browser does with the code, XHTML is treated exactly the same as plain HTML, so a problem you are having in XHTML will not go away simply because you switch to HTML. If a switch to HTML appeared to cure it, you made some other change too or perhaps changed something else when you switched doctypes.

Misunderstanding #2:
Height works perfectly well, but if you quote a height as a %age, logic should have you asking "100% of what?". That's what a browser asks when it comes upon your instruction, so if the block you want to be 100% of something does not sit inside another block, not unreasonably, browsers treat the viewport (ie the visible area of the screen) as the container.

Anyway, whether that question occurred to you or not, the answer to it provides the basis for the various solutions people have already pointed you to.

Last edited by jayeff; 10-29-2006 at 10:45 AM..
jayeff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:46 AM   #34
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
Quote:
Originally Posted by jayeff View Post
Misunderstanding #1:
In terms of what your browser does with the code, XHTML is treated exactly the same as plain HTML, so a problem you are having in XHTML will not go away simply because you switch to HTML. If a switch to HTML appeared to cure it, you made some other change too or perhaps changed something else when you switched doctypes.
Funnily enough it worked as is after I switched to HTML transitional in the doctype. In opera, firefox and IE. Good enough for me.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.