This is a discussion on "CSS Image Buttons - Using too much code possibly ??" within the Web Page Design section. This forum, and the thread "CSS Image Buttons - Using too much code possibly ?? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS Image Buttons - Using too much code possibly ??
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
CSS Image Buttons - Using too much code possibly ??
Hi all ,
I have 4 image buttons i am adding to my page they have 3 states to each , was wondering if i am just using to much code .. and how to possibly refine it. here is a link to the page in question http://www.firstbasedesign.co.uk/index_test.html just a note , the actual text on each button is part of the actual image , would i be better removing that text ?? many thanks |
|
|
|
||||
|
Re: CSS Image Buttons - Using too much code possibly ??
Try this: http://creativecoding.webforumz.com/...ith-images.php
In your case, the navigation looks brilliant! I personally think using the images is fine, but if you use the above method Karinne describes, you might cut down file sizes and loading times. PS: Whole site looks very nice
__________________
Resources Administrator
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: CSS Image Buttons - Using too much code possibly ??
thanks for the positive comments , much appreciated !
I am just after getting my CSS as tight as possible , and trying to avoid 'repeat' code if its not really needed ! |
|
|||
|
Re: CSS Image Buttons - Using too much code possibly ??
You could position real text on top of the images, allowing you to recycle your buttons. So instead of 12 images, you would use 3, with the text going on top.
|
|
|||
|
Re: CSS Image Buttons - Using too much code possibly ??
i did have a play about with that idea Mike , but all buttons decided to sit on top of one another !?!
|
|
|||
|
Re: CSS Image Buttons - Using too much code possibly ??
I would apply the images as CSS backgrounds, and set the size of each link to match the image.
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Validate Radio Buttons in Existing Code | dawgmom | JavaScript Forum | 6 | Jun 3rd, 2008 23:20 |
| Possibly simple question about xp... | Bocaj | Webforumz Cafe | 10 | May 27th, 2008 09:24 |
| A new simple way to make a image slider- Javascript Code | o0DarkEvil0o | JavaScript Forum | 1 | May 20th, 2008 01:37 |
| [SOLVED] image display php code problem | longstand | PHP Forum | 7 | Oct 19th, 2007 17:28 |
| A couple of problems in IE7 (possibly IE6 too?) | blizeH | Web Page Design | 4 | Jun 15th, 2007 08:35 |