Solved

Extend background image (CSS)

Posted on 2014-04-15
4
366 Views
Last Modified: 2014-04-15
Hi, Ive a table as follows:

      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="600" style="background-image:url(images/background1.jpg); background-repeat:no-repeat;">&nbsp;</td>
        </tr>
      </table>

What I need to do is to extend the image when the browser's window size changes (as they do at http://bombbomb.com).

Any ideas?

Thanks!
0
Comment
Question by:SimpleDude
[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
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:sentner
ID: 40002280
Are you asking for help with marketing emails?  Or did you include that link to a spamming company merely as an example of a web page?
0
 

Author Comment

by:SimpleDude
ID: 40002297
???? No, I need to extend an image inside a <TR> and I dont know how to explain it better than with a working sample of what I need to do.
0
 
LVL 14

Accepted Solution

by:
sentner earned 500 total points
ID: 40002307
Ok, just making sure because that link appears to go to a marketing company.  No offense intended.

Are you trying to emulate the resizing of the background image at the top of that page then?  Here is the dump of the CSS for that particular element:
.splash_image_resizes {
position: absolute;
z-index: 0;
width: 100%;
background: url(/img/splashEmail.jpg) repeat-x bottom center;
background-size: cover;
height: 750px;
overflow: hidden;
}

Open in new window

0
 

Author Comment

by:SimpleDude
ID: 40002315
Awesome, I did it this way, taking your example, and it worked. Points are yours!

<td height="600" style="background-image:url(images/background1.jpg); background-repeat:no-repeat; background-size: cover; overflow: hidden; position: absolute; width: 100%;
">

Thanks!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

730 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