Solved

How to make transparent image wider?

Posted on 2006-10-19
3
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

719 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