Solved

How to make transparent image wider?

Posted on 2006-10-19
3
223 Views
Last Modified: 2010-04-09
So far I have <style type="text/css">
<!--
html, body {
     background-image: url(pics/content.gif);
     background-repeat: no-repeat;
     background-attachment: fixed;
}
--> how do I make the image wider?
0
Comment
Question by:jeff640
3 Comments
 
LVL 9

Accepted Solution

by:
marchiano earned 50 total points
ID: 17771356
what if you use div tag?
see sampe below, it strecth background image to 100%

<html>
      <head>
            <style type="text/css">
                  html, body {margin:0; padding:0; width:100%; height:100%; overflow:hidden;}
                  body {font-family:verdana, arial, sans-serif; font-size:76%;}
                  #background{position:absolute; z-index:1; width:100%; height:100%;}
                  #scroller {position:absolute; width:100%; height:100%; top:0; left:0; overflow:auto; z-index:2;}
                  #content {padding:5px 300px 20px 200px;}
                  p {line-height:1.8em; letter-spacing:0.1em; text-align:justify;}
            </style>
      </head>
      <body>
            <div><img id="background" src="bean.bmp" alt="" title="" /> </div>
            <div id="scroller">
                  <div id="content"><!-- Content here!!! --></div>
            </div>
      </body>
</html>

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now