This is a discussion on "buttons with variable lenght and curvy corners" within the Web Page Design section. This forum, and the thread "buttons with variable lenght and curvy corners are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
buttons with variable lenght and curvy corners
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
buttons with variable lenght and curvy corners
Hello there
I am stuck with this problem. I know how to use the four graphics corresponding to the four states of the button (with curvy corners) which I want to use in a menu. Nevertheless, the problem comes because I want the length of my button to be variable depending on the length of the text which appears on the button. This is due to the fact that the length of my button's text changes dynamically. I would appreciate any suggestion since I am stuck with this problem and no successful strategy has come to my mind yet to solve this problem. Thanks in advance. |
|
|
|
#2
|
||||
|
||||
|
Re: buttons with variable lenght and curvy corners
You need a left div containing the left edge graphic (fixed height & width), a centre div containing a repeat-x graphic 1 or 2px wide (fixed height & variable width) then final the right div for, you guessed it, the right edge of the button (fixed height & width).
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#3
|
|||
|
|||
|
Re: buttons with variable lenght and curvy corners
Quote:
Look forward for your suggestions. |
|
#4
|
||||
|
||||
|
Re: buttons with variable lenght and curvy corners
My bad, I thought that would give me enough time to find this out and come back and update my post
It seems the simplest solution is using a 'sliding door' method. Check this out: http://www.oscaralexander.com/tutori...-with-css.html
Last Blog Entry: Fobriwap! (Mar 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: buttons with variable lenght and curvy corners
Quote:
Do you know why this file caca.html shows a really hard edge in the middle of the left side and the right side of each button. It seems as if the join between left and right side of the button did not fit properly. However, it does when you preview both images in an image editor. Could anybody help me to remove that join? Thanks in advance |
|
#6
|
|||
|
|||
|
Re: buttons with variable lenght and curvy corners
You could use shrink wrapped buttons.... i've seen them around just google it.... i think stu nicholls has them on his CSSPLAY...
Found the link... see them here Last edited by Bocaj; May 14th, 2008 at 17:09. Reason: Added linkage |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| resizable text section with a background with 4 curvy corners | thosecars82 | Web Page Design | 5 | May 19th, 2008 16:21 |
| variable pass from rollover buttons to AS on frame | shwnew | Flash & Multimedia Forum | 1 | Nov 5th, 2007 03:19 |
| Rounded Corners | Aaron1988 | Web Page Design | 22 | Apr 18th, 2007 19:15 |
| help with fwd/backwrd buttons affecting other buttons | typeofdoug | Flash & Multimedia Forum | 5 | Feb 4th, 2007 03:48 |
| Css rounded div corners | AdRock | Web Page Design | 2 | Aug 7th, 2006 13:25 |