HighDots Forums  

using a small gif to strech

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss using a small gif to strech in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
webster_1c
 
Posts: n/a

Default using a small gif to strech - 09-01-2006 , 10:02 AM






Hi i have created a website design in photoshop and sliced it up and exported
it as a webpage. then i opended it up in dreamweaver and its looks good
everything appears to be in a table. now i have noticed that some desingers use
a small image and make it strch across the background or inside the cell. I
have an image that i have made 1 pixel in height and about 400 width. i want to
strech this accross my cell. how do i do it . I have tried changinf the src in
properties, but still it does not stretch


Reply With Quote
  #2  
Old   
: Nadia : **AdobeCommunityExpert**
 
Posts: n/a

Default Re: using a small gif to strech - 09-01-2006 , 10:27 AM






You need to use css to make the image repeat.... on the x (horizontally or y
(vertically) axis


..tdback {
background: url(pics/bckground.gif); /*the path to your image*/
background-repeat: repeat-x;
}

and then apply the class to your cell.

<td class="tdback">

eg here:
http://www.dreamweaverresources.com/...htmNadiaAdobeŽ Community Expert reamweaver-------------------------------------------------http://www.DreamweaverResources.com |Tutorials|SEO |CSSTemplateshttp://www.csstemplates.com.au-------------------------------------------------http://www.adobe.com/devnet/dreamweaver/css.htmlCSS Tutorials for Dreamweaver-------------------------------------------------messagenews:ed9egp$14b$1 (AT) forums (DOT) macromedia.com...> Hi i have created awebsite design in photoshop and sliced it up andexported> it as a webpage.then i opended it up in dreamweaver and its looks good> everything appearsto be in a table. now i have noticed that somedesingers use> a small imageand make it strch across the background or inside the cell.I> have an imagethat i have made 1 pixel in height and about 400 width. iwant to> strechthis accross my cell. how do i do it . I have tried changinf thesrc in>properties, but still it does not stretch>


Reply With Quote
  #3  
Old   
joeq
 
Posts: n/a

Default Re: using a small gif to strech - 09-01-2006 , 10:30 AM



if i understand you correctly, you want to have an image as a background to
either a page or an individual table cell. it's not done by stretching it ?
here are some links to how it's done using css to get you started:

http://www.w3schools.com/css/tryit.a...ckground-image
http://www.w3schools.com/css/tryit.a...ground-repeaty
http://www.w3schools.com/css/tryit.a...ground-repeatx


Reply With Quote
  #4  
Old   
: Nadia : **AdobeCommunityExpert**
 
Posts: n/a

Default Re: using a small gif to strech - 09-01-2006 , 10:31 AM



Heres the link again:
http://www.dreamweaverresources.com/...background.htm

got scrambled in the last post for some reason :\

--
Nadia
AdobeŽ Community Expert : Dreamweaver
-------------------------------------------------
http://www.DreamweaverResources.com |Tutorials|SEO |CSS Templates
http://www.csstemplates.com.au
-------------------------------------------------
http://www.adobe.com/devnet/dreamweaver/css.html
CSS Tutorials for Dreamweaver
-------------------------------------------------



Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.