background image table properties

This is a discussion on "background image table properties" within the Web Page Design section. This forum, and the thread "background image table properties are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 18th, 2007, 18:41
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Smile background image table properties

Hi all. I have made a table and put the below code to have a background image but the image i repeating itself in X and Y while I want it to repeat in Y only. Is there anything I can add to do that? Thanks
HTML: Select all
<html>
<body>
<table width="828" border="0" align="center" background="images/bg_shadow.jpg">
</table>
</html>
</body>

Last edited by geyids; Apr 18th, 2007 at 18:44. Reason: edit code
Reply With Quote

  #2 (permalink)  
Old Apr 18th, 2007, 19:17
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background image table properties

How about using CSS

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="EN-US">

<head>
    <title>Some title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    <style type="text/css">
    #addthis {
        background: #fff url(images/bg_shadow.jpg) repeat-y 0 0;
        width: 828px;
        height: 200px; /* may no be needed */
    </style>
    
</head>

<body>

<div id="addthis">some content in here</div>

</body>
</html>
Reply With Quote
  #3 (permalink)  
Old Apr 18th, 2007, 19:56
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 19
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background image table properties

Thanks very much. I got that I bet that is CSS the thing I dont have an idear. Now I ask how can I put this div into a table and move it the way I want eg align center or right and such stuff.
Regards
Reply With Quote
  #4 (permalink)  
Old Apr 18th, 2007, 20:23
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: background image table properties

I want you to learn how to use div's but if you want a quick answer to your first question, set a width to the table. The same width as the actual background images' width!
Reply With Quote
Reply

Tags
bg image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix background image in IE6 tenderfoot Web Page Design 1 Jan 30th, 2008 11:02
[SOLVED] background img center in table robertl Web Page Design 9 Oct 1st, 2007 05:27
.swf file as HTML table background bubberz Flash & Multimedia Forum 9 Jun 18th, 2007 21:45
Need help with an image in a table tennis4you Starting Out 1 Jan 9th, 2007 02:01
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 00:27


All times are GMT. The time now is 04:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43