Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   1,000 Directory Submissions   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 06-14-2007, 12:23 AM   #1 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
shifting background images

is there a way to change the placement of a background image thats placed to a cell?
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 06-14-2007, 12:37 AM   #2 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,379
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
http://www.w3schools.com/css/css_background.asp
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2007, 02:11 AM   #3 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
Quote:
Originally Posted by Jesse Vlasveld View Post
Ok thanx for the help, but i just cant seem to be able to fit this css code into an example of tables im trying to make. Note that i want to shift a pic in the background of the first cell (gray colored), shift is as shown on the example!
Here is the code...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div align="center">
<table width="800" height="656" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" rowspan="4" background="Images/side4.gif">&nbsp;</td>
<td height="185" bgcolor="#CCCCCC">&nbsp;</td>
<td width="15" rowspan="4" background="Images/side4a.gif">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFCC66" style="border-top: solid 1px #FFFFFF;">&nbsp;</td>
</tr>
<tr>
<td height="143">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2007, 02:31 AM   #4 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Quote:
Images/side4.gif & Images/side4a.gif
Where can we find those images so we can actually give you some help?
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2007, 12:19 PM   #5 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
Oh sorry for mixing u up on this. The side4a.gif pics are the shadows for the sides, i dont mind about those. I just want the html code for shiffting a placed image thats put inside the gray cell (the first tp cell).
Wait ill put a pic there so u can shift it for me around...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div align="center">
<table width="800" height="656" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15" rowspan="4" background="Images/side4.gif">&nbsp;</td>
<td height="185" background="Images/main.gif" bgcolor="#CCCCCC">&nbsp;</td>
<td width="15" rowspan="4" background="Images/side4a.gif">&nbsp;</td>
</tr>
<tr>
<td height="30" bgcolor="#FFCC66" style="border-top: solid 1px #FFFFFF;">&nbsp;</td>
</tr>
<tr>
<td height="143">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
</body>
</html>
Attached Thumbnails
shifting-background-images-main.gif  
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2007, 03:06 PM   #6 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
You got me on this one, zoran!

I might be looking stupid here, but I don't understand a thing of what you're saying...

Let me tell you what I understand:

-- you have a table
-- this table has 3 cells
-- each cell has it's own background image
-- the background for the left cell (Images/side4.gif)
-- the background for the middle cell (Images/main.gif)
-- the background for the right cell (Images/side4a.gif)


Now, what I don't understand:

-- What image you want to shift, and where;

And please, be more specific this time
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2007, 10:47 PM   #7 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
Ok i want to shift the container of the cell that has the "main.gif" file. Dont worry about the sides. Main.gif is a pic bigger than the size of the cell and i want to reposition it around by using pixel dimensions. Thats the only that pic i want to move around! Imagine like paning it around in the cell!!!!
Im sorry i put you into all this trouble, thanx so mutch for your intrest!
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 12:01 AM   #8 (permalink)
v7n Mentor
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,218
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
Errr, maybe if you divide your main image and use the overflow:hidden and margin and paddings, you could "kind of" get what you want, but it would only move once, on a click or mouseover.
A pan effect would be either a lot of javascript or flash
But maybe I misunderstood, good luck anyways
__________________
I still got me a signature to fill
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 12:17 AM   #9 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
This will take longer than i thought

When i said paning i only ment it so u can understand how the pic would be placed in the cell, like you drag and drop it by paning it. I dont want any interactivity, no java script or flash, i want it solid there, to one place, but i want it there, by adjusting the pixels of width and height!

Sorry again i should never have mentioned panning
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 01:55 AM   #10 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
zoran, if your image's size is, lets's say, 200x100 and your cell's size is 100x50 there is no way of cutting that image off to fit in the cell as a background image.

All you can do is to play around with the background-position style attribute and see what you can do.

background-image: url('main.gif');
background-repeat: no-repeat;
background-position: [bottom] [center] [left] [right] [top] [inherit];

You can play around by mixing these values :
background-position: bottom center;
or
background-position: left top;
....

hth
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 02:53 AM   #11 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
Cant i set it to shift by "y" pixels vertically and "x" pixels horizontally?
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 05:40 AM   #12 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
nope...

that's not yet implemented...
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 07:19 AM   #13 (permalink)
v7n Mentor
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,218
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
Quote:
Originally Posted by zoran View Post
This will take longer than i thought

When i said paning i only ment it so u can understand how the pic would be placed in the cell, like you drag and drop it by paning it. I dont want any interactivity, no java script or flash, i want it solid there, to one place, but i want it there, by adjusting the pixels of width and height!

Sorry again i should never have mentioned panning
If you place an image in a div as a background with an overflow:hidden tag and thre div is smaller than the image, you could do that.
__________________
I still got me a signature to fill
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 07:24 AM   #14 (permalink)
v7n Mentor
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,218
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
The image is bigger than 200/100 and you can move it aroundwith margins and paddings. But its static
Quote:
#block {
background-image:url("block.jpg");
background-position:top left;
background-repeat:no-repeat;
width:200px;
height:100px;
}
__________________
I still got me a signature to fill
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2007, 11:00 AM   #15 (permalink)
Junior Member
 
Join Date: 01-12-07
Posts: 27
iTrader: 0 / 0%
Latest Blog:
None

zoran is liked by many
Quote:
Originally Posted by cashcannon View Post
The image is bigger than 200/100 and you can move it aroundwith margins and paddings. But its static
can u please put your example in my code, cause i have no idea where to insert it and how!! its the gray cell i want to place my picture in!!!
zoran is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-18-2007, 12:24 AM   #16 (permalink)
v7n Mentor
 
cashcannon's Avatar
 
Join Date: 01-26-06
Location: netherlands
Posts: 2,218
iTrader: 0 / 0%
Latest Blog:
None

cashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest ordercashcannon is a web professional of the highest order
Send a message via ICQ to cashcannon
Link it to your background image, and adjust the width and height to what you want, and call the table id="block"
__________________
I still got me a signature to fill
cashcannon is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB 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
Using CSS for background images in FW created table lajones3 Coding Forum 3 12-19-2007 04:04 PM
Alt Tag and Background Images Estreetloans SEO Forum 23 06-13-2007 11:57 AM
webpage shifting Calisonder Coding Forum 5 01-30-2007 08:02 PM
Dreamweaver background images alignment lajones3 Web Design Lobby 10 09-21-2006 12:37 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:45 AM.
© Copyright 2008 V7 Inc