CSS repeating bg for button

This is a discussion on "CSS repeating bg for button" within the Web Page Design section. This forum, and the thread "CSS repeating bg for button 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 Mar 1st, 2007, 15:23
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
CSS repeating bg for button

Hi,
I am trying to create buttons with css and html with the text on the buttons being html links.

Have a look at what I am trying to create in the screen shot.
I know I wont be able to use the font in html so I will use Verdana. I have tried creating an unordered list and displaying inline with styling but cant achieve to effect.

I have taken a sliver of the image for the background and repeated it across. How do I get the 'endcaps' of the button, will i insert images for these?

I could take the whole image and put it in the background but I do not want to do this because the buttons will be different lengths. Also the buttons will be localised eventually so they will be unpredictable lengths.

Any ideas?
Attached Images
File Type: gif buttons.gif (1,020 Bytes, 32 views)
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 Mar 1st, 2007, 16:03
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS repeating bg for button

Why don't you do the whole thing a link?!

Use this method : Pure CSS rollovers without Javascript
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 Mar 1st, 2007, 20:32
Junior Member
Join Date: Dec 2005
Location: Dublin
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS repeating bg for button

The content will be localised into different languages in the future, this means that to have images for different links in all languages would be a lot of work.

It is also going to go into a system of CMS so that users can customise their own navigation.

If there is a way of doing this with CSS/HTML rather than just cutting and linking images it would be a lot more ideal...
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 Mar 1st, 2007, 21:11
BGarner's Avatar
Reputable Member
Join Date: Oct 2006
Location: In front of the computer.
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS repeating bg for button

If you dont need the end caps you could always do it like this one i wrote.

http://www.williamrivero.co.nr

Don't copy the code, it's too messy.
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
background repeat button

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
Repeating table with js? moojoo JavaScript Forum 11 Jul 27th, 2006 13:08
Weird IE Bug - repeating words Andy K Web Page Design 5 Mar 5th, 2006 12:23
hover image repeating on me hessodreamy Web Page Design 1 Dec 7th, 2005 13:41
Repeating DIV in Safari chevy409 Web Page Design 0 Oct 4th, 2005 21:03


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


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