Making a basic CSS Image Header [Photoshop Website] HD 720p

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,877
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 1, 2009

In this video I show you one of the most simple techniques to make a graphic header on a web page that extends the whole width of the browser window using a Photoshop mockup, HTML and CSS coding.

This technique is very common but is very useful when making a website from a Photoshop mockup, by using the slice tool you can cut a small sample of the header and you can then extend it in the X or Y axis for infinity on your browser window. Thus creating the illusion that the header stretches across the browser window and changes size according the the browser window.

----------------------------

CSS code used:
* {
margin: 0;
padding: 0;
{

body {
background:url(images/header.png) repeat-x #ffffff
}

url(images/header.png) - this is for my personal scenario, the URL refers to the image name and its directory (location) after the CSS file. For example:

1)The CSS file is in: "C:/website"
2)The image is in: "C:/website/images"
3)The image is named: "crab.png "
4)The URL used would be: "url(images/crab.png)"

#ffffff = Hex code for white, Google hex codes to learn more about them, otherwise use photoshop to generate your hex codes as shown in the video. (HEX CODES ARE UNIVERSAL, #FFFFFF IS WHITE, #000000 IS BLACK ECT. THEY DO NOT CHNAGE! :D)

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Curtguven)

  • Good!

    But why english talking ppl talk to fast, looks like "hurry, the monster is getting close", uhuhuhu

  • dunno tbh lol

  • third ;)

Top Comments

  • @stopthrm sorry ignore the previous comment, thinking about another annoying microsoft product, best thing to use is eaither dreamweaver or notepad ++ as they save all the content as you actually see it, or it could be your browser try another one.

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • Really cool :) thanks a lot for the informations :)

  • @RhodderzX Idid fix the problem. Everything works now. I had forgotten to zero out the CSS document's default margin and padding. It works now.

  • @stopthrm erm syntax is the same but websites and programming are 2 different things, yes they have simularites but sometimes you just cant have the same or simular coding

  • I am trying to do this in Visual Studio 2008 and its just not playing ball. Syntax and everything is the same...

  • He doesn't talk fast, learn english

  • i tried this and nothing happened. all i have is blank page. the backgound doesn't even change colors.

  • @adalbertojoco Haha, funny, but really, have you tried giving a dissertation on web creation in 5 or even 10 minutes? I would agree that time is a monster.

  • Thanks for this. Straight forward and clearly explained.

  • Hey, thanks :D

Loading...

Alert icon
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