Jump to content


Photo

Dreamweaver repeating image?


  • Please log in to reply
4 replies to this topic

#1 squr3l

squr3l

    Jedi In Training

  • Members
  • PipPip
  • 479 posts
  • Location:California
  • Interests:GFX, SFX, IT Specialist

Posted 01 December 2006 - 08:21 PM

im coding my site and i cant remember how to make an image repeat without stretching it, i need it in this table and i want the 20px wide image to repeat 100% the width of the column
if anyone knows how to set that up itd be great, thanx i tried searching the tuts but didnt find anything except image maps >.>

Attached Files



#2 NGPixel

NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 01 December 2006 - 08:50 PM

i guess you want to right 1px of your image to repeat?

Then you need to use CSS background-image to repeat a 1px image then set background-repeat:repeat-x;

#3 squr3l

squr3l

    Jedi In Training

  • Members
  • PipPip
  • 479 posts
  • Location:California
  • Interests:GFX, SFX, IT Specialist

Posted 01 December 2006 - 08:57 PM

well i need it to be the 20 px image because is has the 20 px wide scan lines, but thanx for the code =)

#4 Mark

Mark

    Young Padawan

  • Members
  • Pip
  • 113 posts

Posted 02 December 2006 - 03:37 PM

Or, simply:

yourclassname {
background: repeat-x;
}

#5 Hayden

Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 717 posts
  • Gender:Male
  • Location:Texas

Posted 04 December 2006 - 02:34 AM

i guess you want to right 1px of your image to repeat?

Then you need to use CSS background-image to repeat a 1px image then set background-repeat:repeat-x;



well i need it to be the 20 px image because is has the 20 px wide scan lines, but thanx for the code =)



What NG said. You just need to make your picture you are wanting to tile 20px wide.


body {
	background: #fff url('image.jpg') repeat-x fixed top;
}

I believe something like that if you want it all in one line.

body {
	background: #fff url('image.jpg') repeat fixed bottom;
}

Like that if you want it to repeat both the x and y axis

Edited by SpatialVisionary, 04 December 2006 - 02:43 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users