Solved

Extend background image (CSS)

Posted on 2014-04-15
4
344 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

707 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

14 Experts available now in Live!

Get 1:1 Help Now