0
   

Xhtml Image Backrounds

 
 
Noobie
 
Reply Tue 9 Oct, 2012 09:13 pm
What is the code to put n image as a backround on Xhtml.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,927 • Replies: 3
No top replies

 
jespah
 
  1  
Reply Wed 10 Oct, 2012 05:39 am
@Noobie,
It really depends on what you're trying to do. Also, backgrounds are often (not always) handled via CSS.
ronc0011
 
  1  
Reply Sat 3 Nov, 2012 09:26 am
@jespah,
Actually the code to put in a background image is pretty basic. You can use the same code for either the whole page or for just a container like table or a div or a cell here is an example applying an image to the whole page

<body style="background-image;url(http://mysite.com/images/BG.png");background-repeat:no-repeat;background-aattachment;fixed;">

OK so basically you have to supply the path to the image you want to use i have used an absolute path here i.e. "http://etc". BTW, paths can be troublesome if you don't get the path or syntax just exactly right then it won't find the image. Also in my example i made the image (background) fixed so the page scrolls and the background stays fixed
jespah
 
  2  
Reply Sat 3 Nov, 2012 04:46 pm
@ronc0011,
Thanks - I had spent some time teaching myself this stuff but then life got in the way. Smile
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Xhtml Image Backrounds
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/26/2024 at 10:54:19