Website Design Development and SEO Forum
SEO Forum - Web Design : Web Hosting : Web Development : SEO Forum

Help to set picture as a background on my web pages?

Post your questions and queries on HTML Programming here. HTML Programming is the backbone of all technical know-how.
 

Help to set picture as a background on my web pages?

Postby Jacks » Wed May 11, 2011 11:36 am

I have created a site in HTML code but the background has been remain to set. So i need help in writing the code line for the same and to fix it not move when using the scroll bar in the browser.
Jacks
 
Posts: 7
Joined: Mon May 09, 2011 10:06 am

 

Re: Help to set picture as a background on my web pages?

Postby Martin » Fri May 27, 2011 10:20 am

Use the following code to set the image as background and the "fixed" attribute is to make it stationary while scrolling.

<body background ="yourimage.gif" bgproperties="fixed">
Martin
 
Posts: 8
Joined: Mon May 09, 2011 10:01 am

 

Re: Help to set picture as a background on my web pages?

Postby mark006 » Mon Mar 05, 2012 5:29 am

hi martin, using "fixed" tag will stop the picture to be scrolled. css can help in this case






_________________________
Tier 2
mark006
 
Posts: 19
Joined: Mon Feb 20, 2012 6:39 am

 

Re: Help to set picture as a background on my web pages?

Postby cruise » Fri Apr 27, 2012 12:45 pm

If you have to set the picture in background of your web page then you have to use the style attribute of your HTML element. Like

<div style="background-image:sample.jpg">wel come</div>
cruise
 
Posts: 4
Joined: Wed Apr 25, 2012 6:11 pm
Location: USA


Return to HTML programming

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by Flexsin Copyright ©2007 All Rights Reserved