Jump to content

Background image


blogsmith
 Share

Recommended Posts

There is a bit more something to that you might need to know for the future. XHTMLs specification doesn't allow backgrounds on the <body> but does allow on the <html> element, or at least, that's what Firefox does when it opens *.xhtml files (and it's not suppose to be a bug either, I checked). So for the sake of browsers supporting the application/xhtml+xml MIME type, it is of best practice to use

html {background:url("http://photo-url.jpg");}

instead

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...