Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Tutorials
HTML/CSS How to make your body background fit perfectly.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="broges" data-source="post: 387020" data-attributes="member: 43824"><p style="text-align: center"><span style="font-size: 18px"><strong>HOW TO MAKE YOUR BODY BACKGROUND FIT PERFECTLY.</strong></span></p> <p style="text-align: center"><span style="font-size: 15px">Hello, </span></p> <p style="text-align: center"><span style="font-size: 15px">a lot of people don't know how to make their body background image fit perfectly with the browser. It's simple to do, let me show you.</span></p> <p style="text-align: center"><span style="font-size: 15px"></span></p> <p style="text-align: center"><span style="font-size: 15px">First, you want to grab your background image, let's make an images folder in our main folder and place all our desired images in there. </span></p> <p style="text-align: center"><img src="http://image.prntscr.com/image/6ac5acf72929451ca27546c4b1a7de23.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p> <p style="text-align: center"></p> <p style="text-align: center">Now let's insert this background image into our CSS.</p> <p style="text-align: center"> <img src="http://image.prntscr.com/image/d3f2206778ee4c0fb125067b9491365d.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p> <p style="text-align: center"><img src="http://image.prntscr.com/image/9590f9e0b7154d11b8b5be747efd1fd8.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p> <p style="text-align: center">Pretty ugly right? Let's see how we can fix this.</p> <p style="text-align: center"> <img src="http://image.prntscr.com/image/fb4490aaf76f4974bbf0179a55885aba.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p> <p style="text-align: center">background-repeat: no-repeat; makes it so the image doesn't repeat itself like it does in that screenshot. </p> <p style="text-align: center">background-size: cover; makes it so it coveres the whole screen. </p> <p style="text-align: center">position: fixed; will makes it so the image stays in that spot and doesn't resize when the browser is resized/viewed on other devices. </p> <p style="text-align: center"><img src="http://image.prntscr.com/image/064eeb1253e0494aab9f275f89265f45.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p> <p style="text-align: center">The height on this image was too small, but you catch my drift. </p> <p style="text-align: center">See, simple! Hope this helped for anyone wondering how to do this.</p></blockquote><p></p>
[QUOTE="broges, post: 387020, member: 43824"] [CENTER][SIZE=5][B]HOW TO MAKE YOUR BODY BACKGROUND FIT PERFECTLY.[/B][/SIZE] [SIZE=4]Hello, a lot of people don't know how to make their body background image fit perfectly with the browser. It's simple to do, let me show you. First, you want to grab your background image, let's make an images folder in our main folder and place all our desired images in there. [/SIZE] [IMG]http://image.prntscr.com/image/6ac5acf72929451ca27546c4b1a7de23.png[/IMG] Now let's insert this background image into our CSS. [IMG]http://image.prntscr.com/image/d3f2206778ee4c0fb125067b9491365d.png[/IMG] [IMG]http://image.prntscr.com/image/9590f9e0b7154d11b8b5be747efd1fd8.png[/IMG] Pretty ugly right? Let's see how we can fix this. [IMG]http://image.prntscr.com/image/fb4490aaf76f4974bbf0179a55885aba.png[/IMG] background-repeat: no-repeat; makes it so the image doesn't repeat itself like it does in that screenshot. background-size: cover; makes it so it coveres the whole screen. position: fixed; will makes it so the image stays in that spot and doesn't resize when the browser is resized/viewed on other devices. [IMG]http://image.prntscr.com/image/064eeb1253e0494aab9f275f89265f45.png[/IMG] The height on this image was too small, but you catch my drift. See, simple! Hope this helped for anyone wondering how to do this.[/CENTER] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Tutorials
HTML/CSS How to make your body background fit perfectly.
Top