O'Reilly Forums: Html5 And Irock - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Html5 And Irock style.height issue

#1 User is offline   matttti0 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 20-June 12

Posted 20 June 2012 - 01:27 PM

Hi, i'm from Poland and I wonder about one thing. I write code in new HTML5 standards and learning JS from your Head First book. I'm on 3'rd chapter so far and I had stucked on resizing iRock for 2 hours on comparing my code to orginal or trying to get what's wrong by showing all variabales values on each moment. At least I figured that the gilty was in <!DOCTYPE html> tag and i wonder now why? Did that method changed for HTML5? Until that moment everything worked just fine. I don't want to go back to xhtml or html 4.01 for JS.

PS: Sorry for grammar mistakes.

This post has been edited by matttti0: 20 June 2012 - 01:28 PM

0

#2 User is offline   drewdin 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 608
  • Joined: 11-February 10
  • Gender:Male
  • Location:Boston

Posted 20 June 2012 - 05:13 PM

View Postmatttti0, on 20 June 2012 - 01:27 PM, said:

Hi, i'm from Poland and I wonder about one thing. I write code in new HTML5 standards and learning JS from your Head First book. I'm on 3'rd chapter so far and I had stucked on resizing iRock for 2 hours on comparing my code to orginal or trying to get what's wrong by showing all variabales values on each moment. At least I figured that the gilty was in <!DOCTYPE html> tag and i wonder now why? Did that method changed for HTML5? Until that moment everything worked just fine. I don't want to go back to xhtml or html 4.01 for JS.

PS: Sorry for grammar mistakes.


I'm not sure what your asking here but if you want to use html5 just change the doctype and your fine.
0

#3 User is offline   matttti0 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 20-June 12

Posted 21 June 2012 - 12:02 PM

View Postdrewdin, on 20 June 2012 - 05:13 PM, said:

I'm not sure what your asking here but if you want to use html5 just change the doctype and your fine.

I'm asking why some Js functions doesnt work when i use <!DOCTYPE html>
0

#4 User is offline   webleydevelopment 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-September 12

Posted 08 September 2012 - 04:31 PM

View Postmatttti0, on 21 June 2012 - 12:02 PM, said:

I'm asking why some Js functions doesnt work when i use <!DOCTYPE html>



It's something to do with the <!doctype html> declatation.
You can fix this by setting up some CSS...

<style type="text/css">
body, html {
width:100%;
height:100%;
margin:0px;
padding:0px;
}
</style>


Similar issue is posted here = http://forums.oreill...ing-with-xhtml/
0

#5 User is offline   sammael1106 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-July 13

Posted 24 July 2013 - 09:49 AM

View Postwebleydevelopment, on 08 September 2012 - 04:31 PM, said:

It's something to do with the <!doctype html> declatation.
You can fix this by setting up some CSS...

<style type="text/css">
body, html {
width:100%;
height:100%;
margin:0px;
padding:0px;
}
</style>


Similar issue is posted here = http://forums.oreill...ing-with-xhtml/


Thanks! It works!

This post has been edited by sammael1106: 24 July 2013 - 10:06 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users