Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-24-2008, 09:07 AM Doctypes
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
Ok, i made a quick portfolio home page earlier. At the begining i forgot to add a doctype and my page looked fine but when i added a doctype 'height: 100%' does not seem to have any effect so instead of filling the whole screen vertically it just has the space that has content in.

This is what it looks like without a doctype:
[image removed]

This is what it looks like with a doctype:
[image removed]

I have tried all the html and xhtml doctypes: transitional, frameset, and strict.
Edit: Sorry about the image size.
Edit 2: The image is now watermarked so please don't try steal it, lol, not that anyone would but i just read a thread where they did...
the bit that says, 'JOSHUA DAVISON! HANDS OFF!'...thats just the watermark.

EDIT 3:
Code:
removed
obviously theres the doctype to add plus you add the xmlns="blah" to the html tag when you add a doctype.

Last edited by Joshy D; 02-24-2008 at 12:20 PM..
Joshy D is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2008, 09:24 AM Re: Doctypes
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
without seeing the code of your page, we cannot do anything to help you.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-24-2008, 09:25 AM Re: Doctypes
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
the codes been added to the bottom of the post. I was doing that just as you posted that.
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 10:11 AM Re: Doctypes
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Read this stickie:
http://www.webmaster-talk.com/css-fo...l-browser.html

You need this:
body{height: 100%;}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 12:04 PM Re: Doctypes
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
nope, that hasnt worked. i did the thing with the body height and although i dont like tables i tried that method aswell but that didnt work either.
any other solutions?

Joshy D on Dansgalaxy's PC.
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 02-24-2008, 12:18 PM Re: Doctypes
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
pure sexy...i set the 'html' height to 100% aswell as the 'body'

so i had
Code:
html,body{height:100%;}

Last edited by Joshy D; 02-24-2008 at 01:07 PM..
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 02-24-2008, 01:07 PM Re: Doctypes
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Sorry, have him round and all he does is sit on my pc fixing his webpage *sigh* what can you do...

Lol
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 02-26-2008, 12:13 PM Re: Doctypes
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
He has already fixed it ...



Quote:
Originally Posted by Joshy D View Post
pure sexy...i set the 'html' height to 100% aswell as the 'body'

so i had
Code:
html,body{height:100%;}
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Doctypes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56449 seconds with 12 queries