Nori
Junior Member
Posts: 483
inherit
182806
0
Nov 16, 2024 21:35:22 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Apr 16, 2014 15:48:14 GMT -8
Is it possible to create a vertical button? Currently I have been attempting to accomplish this by putting in line breaks in a submit button's value, of which is sitting in my global footer, but all my tricks have failed. Any suggestions? I do have 'white-space:normal;' set. Have tried: (with the proper '&' before them of course...)- #x00a;
- #10;
- <br />
- /n
- And of course a simple enter as per the code above
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Apr 16, 2014 16:10:17 GMT -8
Try this :
<input class="button" type="submit" value="To be Line 1 To be Line 2"/>
EDIT: forgot this bit:
<input class="button" style="white-space:pre;" type="submit" value="To be Line 1 To be Line 2"/>
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Nov 16, 2024 21:35:22 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Apr 17, 2014 5:48:08 GMT -8
You're magical. That did the trick! I do have another question for you (or anyone else)... is it possible to transpose a button? By that I mean flip it on its side.
This is fantastic though, many thanks.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Apr 17, 2014 6:31:38 GMT -8
Can you try to make an example of how you want it to look? I'm not sure what end result your looking for.
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Nov 16, 2024 21:35:22 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Apr 17, 2014 9:16:02 GMT -8
I do have something made but it's on my home computer and I apparently removed the image from my Photobucket last night... Basically, take the 'Pebble' banner in your signature and turn it 90 degrees. The only advantage I would have for doing that over my currently line breaking text is inheriting the button styling from the forum (since the default background styles are all horizontal), so is more of a curious request.
I can post an example image later today if this isn't clear enough.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Apr 17, 2014 9:25:18 GMT -8
Something like this?
<input class="button" style="white-space:pre; transform:rotate(90deg); -webkit-transform:rotate(90deg);" type="submit" value="To be Line 1 To be Line 2"/> This will only work in modern browsers, so you'd have to check out what happens in older ones. Change the 90's to what ever rotation you want ( in both parts of the style values ).
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Nov 16, 2024 21:35:22 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on Apr 17, 2014 9:37:03 GMT -8
Well isn't that snazzy. Will keep that transform bit in my back pocket. Many thanks once again! You have a great long weekend
|
|