Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Box Model Web Page Layouts with CSS

Loading...

Sign in or sign up now!
14,297
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 20, 2009

Use CSS floats and positions to create web page layouts.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (rrphillips)

  • thanks.

    btw, which firefox theme is that? ;)

  • firefox theme: nasa night launch

Top Comments

  • There must have been a point in time when you didn't know it. You weren't born with this information in your head!

    I found the tutorial very useful.

  • I've got a challenge. Try getting it to look the same in FF and IE without using a CSS hack. It's next to impossible.

see all

All Comments (25)

Sign In or Sign Up now to post a comment!
  • 10/5! i lerended so much!

  • Is there a second part to this video?

  • Hi. Great video tutorial. Programming is much easier to learn through visual demonstration.

    4:55 - This problem can be solved much easier.

    There is no need to declare BOTH the red and blue box to be width: 50%. Just declaring the red box to be width 50%, and then removing the margins off both will create the same effect.

  • @0987654321284

    div ofcourse

  • Seems like you made a mistake in this tut. You say absolute positioning works 'best" if any parent container has a position value. Either relative or absolute. What i`d like to point is, you NEED to have a parent container with either values. If not, those absolute positioned elements will position itself to the first element which has it. If the CSS doesn`t provide any, the body will be its parameter.

  • tables or div? what is better.

  • you'll need a text align for IE7 < to center a div. but this is a nice video for those new to html and css. nice vid :)

  • Using a css reset rule will go a long way to creating consistent layouts for FF and IE. You can find complex reset rule examples through Eric Meyer's site, but I often use * {margin:0px;padding:0px} as the first rule in my css. That takes away the default margin and padding of all elements and puts IE and Firefox on the same starting line.

  • So true...

  • I wish my Web Dev lecturer was as clear as you are. Thanks for the tutorials.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more