?
Solved

CSS table cell background image: right & bottom justify

Posted on 2009-12-19
3
Medium Priority
?
538 Views
Last Modified: 2012-05-08
i have avarying size cell (based on db content displayed) that i'd like to have the background have a bottom & right edge  for the "last" 30 pixels (the quasi beveled edge fades away to the left and to the top).   (normal) Text is displayed over the background

Is there a way to do BOTH of the following:
- bottom justify and right justify a background image in a table cell background (non repeating)
- AND ... have a solid background for the rest of the cell where the image does not extend to (note that this solid background color is the same as the majority of the background image color)

thanks
0
Comment
Question by:willsherwood
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
FDMilwaukee earned 2000 total points
ID: 26088326
Try this:
<td id="cell_you_describe_above">
<div id="your_div_name_id_w_background">
</div>
</td>

CSS
#cell_you_describe_above
{position:relative;
}

#your_div_name_id_w_background
{postion:absolute;
bottom:0px;
right:0px;
background-color:#ffffff <--------whatever your color is
background-image:url(yourbackgroundimage.jpg);
background-repeat:no-repeat;
}
0
 
LVL 9

Expert Comment

by:FDMilwaukee
ID: 26088329
Hope that helps
FDM
0
 

Author Closing Comment

by:willsherwood
ID: 31668139
i'll give it a try, looks good.
THANKS!
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

839 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