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 PostHi,
Type this command in your CSShtml { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
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.