repeat image on y axis

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 2nd, 2006, 16:54
Reputable Member
Join Date: Dec 2005
Location: scotland
Age: 27
Posts: 160
Thanks: 1
Thanked 0 Times in 0 Posts
repeat image on y axis

how do your repeat an image (shadow) down the y axis on the container box on the left and the right hand side.

got a small image which i would like to represent the shadow on the left and right. the container box will be 500px wide, centered and have no margins at the top and bottom.

any tips, cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 2nd, 2006, 17:17
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: repeat image on y axis

recreate the image so that it is 1 pixel high, 500 pixels wide and contains the left-side shadow and right-side shadow. Then do this with your CSS

#box {background: url(images/shadows.gif) repeat-y;}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 2nd, 2006, 18:20
Reputable Member
Join Date: Dec 2005
Location: scotland
Age: 27
Posts: 160
Thanks: 1
Thanked 0 Times in 0 Posts
Re: repeat image on y axis

i think i've tried what you said but no image seems to show, can you have a look at what i've done and see if you can spot any prob,

cheers 4 the reply


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Drop Shadows 2</title>

<style type="text/css">

#box{ border: 1px solid #000;
margin: 0 auto;
width:400px;
background-image: url(shadow back.png);
background-repeat: repeat-y;
}
</style>
</head>

<body>
<div id="box">
<h1>paulcurley.com</h1>
</div>

</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 2nd, 2006, 18:33
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: repeat image on y axis

Well, I think the width should be 500px right? Whatever width you're image is, that is the width you declare in the CSS. Also, as long as your image is in the top-level as you've declared it, you should probably be fine.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 2nd, 2006, 18:48
Reputable Member
Join Date: Dec 2005
Location: scotland
Age: 27
Posts: 160
Thanks: 1
Thanked 0 Times in 0 Posts
Re: repeat image on y axis

cheers man, got it working. it didn't seem to like the space in the title of the image.

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 2nd, 2006, 21:01
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: repeat image on y axis

Anytime
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
repeat, image, axis

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
image repeat snelll Web Page Design 9 May 26th, 2008 17:34
3D Scrolling Wheel in z-axis bunty07 Flash & Multimedia Forum 1 Mar 11th, 2008 12:07
background-repeat: repeat y not working properly AdRock Web Page Design 12 Feb 25th, 2007 22:17
repeat a horizontally centered background image Legacy_Staff Web Page Design 12 Jul 14th, 2006 20:23
repeat-x gradientation gwx03 Graphics and 3D 1 Jan 3rd, 2004 07:04


All times are GMT. The time now is 07:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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