Gamingforce Interactive Forums
85240 35212

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


Is it possible to have CSS buttons with own background?
Reply
 
Thread Tools
gaming
River Chocobo


Member 360

Level 25.07

Mar 2006


Reply With Quote
Old May 24, 2006, 01:05 PM #1 of 3
Is it possible to have CSS buttons with own background?

Hi guys.
Are there any CSS experts in here? I'm curious about CSS buttons.
1. If I have a JPG image, can it be the default image for all buttons?

Now for a more complicated question.
2. If my image contains 3 parts, X Y Z, is it still possible to use CSS?
X and Z will be the same for all buttons. Y is the dynamic part which will be expanded (dependent on how long the button is).




Also, does anybody know what font the default Macromedia is using? It only says "size 2, 3, 5, +1, +2" etc..
Here is a picture:



Hope you guys understand.
Thanks

Jam it back in, in the dark.

Last edited by gaming; May 24, 2006 at 01:13 PM.
Duminas
Something


Member 29

Level 13.21

Mar 2006


Reply With Quote
Old May 24, 2006, 08:55 PM Local time: May 24, 2006, 05:55 PM #2 of 3
1. Anything can be a "default", you just need define a class, define some properties of said class, then apply the class to any object you want to use the stylings therein.

2. This is possible, though you will need to use empty elements, which I am not that big a fan of. Take, for example, this code (all inline styles to shrink the code):
Code:
<div class="button">
   <p style="display: inline; background: url(left.jpg) no-repeat;"></p>
   <p style="display: inline; background: url(repeat.jpg) repeat-y;">Content</p>
   <p style="display: inline; background: url(right.jpg) no-repeat;"></p>
</div>
The "display: inline" style is to make them stack horizontally. <p> will normally not do so, and due to this it must be forced.

3. That's a sans-serif default font. It appears to be Arial, at 10 point size.

There's nowhere I can't reach.


Need help using an FTP client? Look no further! ««
gaming
River Chocobo


Member 360

Level 25.07

Mar 2006


Reply With Quote
Old May 25, 2006, 02:47 AM #3 of 3
Hmmm...
The code goes in the CSS file right?

Code:
<div class="button">
   <p style="display: inline; background: url(left.jpg) no-repeat;"></p>
   <p style="display: inline; background: url(repeat.jpg) repeat-y;">Content</p>
   <p style="display: inline; background: url(right.jpg) no-repeat;"></p>
</div>


This thing is sticky, and I don't like it. I don't appreciate it.

Last edited by gaming; May 25, 2006 at 04:25 AM.
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > Is it possible to have CSS buttons with own background?

Forum Jump


All times are GMT -5. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.