how to make the background picture as a whole page?... because when i create a background pic from photoshop and adjust to 550 height and 1000 weight(in piexels) it didn't fit to the screen of the monitor.
Makcarov -3 Newbie Poster
Recommended Answers
Jump to PostIn your CSS by the tag that you want the image to be add
background: url('your_image.file');width 100%; height: 100%
, just keep in mind that the image might get distorted on different screen sizes
Jump to PostSimply use the following css
body
{
background-attachment:fixed;
background-image:url('folder-name/image-name.jpg');
background-repeat:no-repeat;
}a little simpler to just do
body{
background: image:url(folder/image) fixed no-repeat;
}less is more.
All 6 Replies
shaya4207 8 Junior Poster
Bestwebdesign 0 Newbie Poster
shaya4207 8 Junior Poster
johnsteve.bravo 1 Light Poster
gracyj 0 Newbie Poster
shironui 1 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.