473,795 Members | 3,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to repeat a background graphic except for the bottom 20 pixels

Hi,

I'm trying to have a repeating vertical graphic that repeats all the
way down my table except for the bottom 20 pixels, which I would like
to be blank -- white, if white is the default BODY background color.
So far, this is all I have ...

<TABLE align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td style="width:15 px;
background-image:url('imag es/shadow-lt.gif');">&nbs p;</td>
<td content </td>
</tr>
</TABLE>

Problem is the left graphic goes all the way down, instead of stopping
short by 20 pixels. Thanks, -

Jul 11 '06 #1
1 1641
la***********@z ipmail.com wrote:
Hi,

I'm trying to have a repeating vertical graphic that repeats all the
way down my table except for the bottom 20 pixels, which I would like
to be blank -- white, if white is the default BODY background color.
So far, this is all I have ...

<TABLE align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td style="width:15 px;
background-image:url('imag es/shadow-lt.gif');">&nbs p;</td>
<td content </td>
</tr>
</TABLE>

Problem is the left graphic goes all the way down, instead of stopping
short by 20 pixels. Thanks, -
Not sure what you mean here, but you could add a 20 pixel border to the
bottom of your table like this:

<TABLE align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0
style="border-bottom: 20px solid green;">
<tr>
<td style="width:15 px;
background-image:url('imag es/shadow-lt.gif');">&nbs p;</td>
<td content </td>
</tr>
</TABLE>

I've used green here but you can change that to white. I suggest you
don't use inline styles though. Set classes for your table and td
instead and reference them from an external stylesheet. Also you should
be looking at using divs instead of tables if this isn't a data table.

Jul 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
62537
by: puzzled | last post by:
I'm trying to use a small gif of a Christmas tree as a horizontal divider across the screen (which could be any number of pixels wide). My attempt at doing this was basically like this: <img alt="tree graphic (1k)" src="tree.gif" height="60" width="100%"> So I got a tree that looked like a funhouse mirror reflection - 60 pixels high, like I asked; but stretched fully across the screen. It looked like someone dragged a green...
1
6459
by: Theodore A. Jencks | last post by:
Hi all, I posted a question about a side navigation bar earlier where I was encountering this problem. I thought I'd repost the question in a more general format because I'm not sure people quite understood what I was asking in my last post. Here is what I'd like to do: 1. Have a div tag that's soul purpose is to display a repeating background image in the y-axis. 2. The div tag should also have a fixed width.
4
11097
by: Susan | last post by:
This code should repeat a gif that measures 545-pixels wide by 18 pixels high along the left edge of the division, but it doesn't show up at all. Here's the definition of the div in the stylesheet: #rails { position: absolute; top:69px; left:50px; width:545px;
8
10179
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.