Newbie Question: How to Center and No-repeat Background Image

Hey guys… well this really is pretty straightforward query. Everytime I decide to put a image when my background, it doesn’t stay in the middle, and it often repeats. Is there anyway to generate it in the center of the page, regardless of size your cell phone is, and allow it to become so it would not repeat, and it stays still if you scroll the page Thanks for virtually any help.

-KaiDaO

HTML:
body
track record: url(" image. jpg" ) repeat-y prime center;

That does not work…

What component of it doesn’t work

Or is more what that you’re after

HTML:
< head>
< model type=" text/css" >
human body
background: url(" image. jpg" ) no-repeat center center;

< /style>
< /head> 

Hmm… that does not work either… i’m sorry guys, I’m still by far the most big newbie in web designing, and I do not know " which part" doesn’t work. For the earliest code, it appears when plain text one specific, and for the second code, it just simply doesn’t show something except a whitened background.

Oh, sorry I needs explained myself greater.

This really is CSS (internal CSS). It need to be placed between your current < head> < /head>

eg. of a entire document with css.

HTML:
< html>
< head>
< model type=" text/css" >
human body
background: url(" image. jpg" ) no-repeat center center;

< /style>
< /head>
< body>

subject matter

< /body>
< /html> 

Thanks, that worked =) Thanks a great deal.. I’m not understanding CSS yet while, =P I’m still doing w3school’s WEB CODING one, i’m around the Imaging… the photo map thing is weird.. never works personally =(.. like, I can’t receive the coordinates of your image and equipment…

w3schools wonderful place to begin, actually probably one of the best.

Unlike in the west the image maps, you don’t find them too oftens right now, probably due into the reason you expressed, it’s hard to acquire the coordinates proper, unless you’re using similar to Dreamweaver (and I also think ImageReady) where you can do it visually, besides coding it.

Best of luck

Hmm… so would it be really essential to master Because I swear, my brain is gonna magnify if I keep trying to make this do the job.

Not seriously, the same thing may be achieved with reducing images, to a qualification. But if it’s something you need to know then it is worth it.

Well, thank you for those your help =).

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *