buttons with variable lenght and curvy corners

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.



 Subscribe in a reader

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

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 13th, 2008, 21:30
Junior Member
Join Date: May 2008
Location: USA
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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 May 13th, 2008, 21:38
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
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)
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 May 13th, 2008, 21:47
Junior Member
Join Date: May 2008
Location: USA
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Re: buttons with variable lenght and curvy corners

Quote:
Originally Posted by frinkky View Post
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).
Thanks frinkky but I had already thought that. However, that does not solve my problem because I don't know how to change the appeareance of the both left and right extremes of the button. What I had been using so far was the hover property, so I had one div class for hover with imagebuttondown.gif as background and another with imagebuttonup.gif as background. However, now, I would need to change both extremes of the button to show the different states of the button. And my problem comes because I do not know how to change the state of the extremes of the button when the mouse goes over one of the three parts of the button: either the central or the extremes.
Look forward for your suggestions.
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 May 14th, 2008, 03:38
frinkky's Avatar
Super Moderator
Join Date: Oct 2006
Location: Southampton
Age: 30
Posts: 351
Blog Entries: 2
Thanks: 2
Thanked 6 Times in 6 Posts
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)
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 May 14th, 2008, 11:01
Junior Member
Join Date: May 2008
Location: USA
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Re: buttons with variable lenght and curvy corners

Quote:
Originally Posted by frinkky View Post
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
I have just followed the sliding doors method.
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
Attached Images
File Type: gif left.gif (369 Bytes, 11 views)
File Type: gif left_down.gif (370 Bytes, 11 views)
File Type: gif right.gif (1.5 KB, 11 views)
File Type: gif right_down.gif (1,010 Bytes, 11 views)
Attached Files
File Type: html caca.html (2.3 KB, 0 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
  #6  
Old May 14th, 2008, 16:09
Reputable Member
Join Date: Mar 2008
Location: Chester, UK
Age: 18
Posts: 438
Thanks: 2
Thanked 29 Times in 29 Posts
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
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

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
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


All times are GMT. The time now is 19:12.


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