| | |
Squishing
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2008
Posts: 15
Reputation:
Solved Threads: 0
What is the best way to code a web site so that it will be the same no matter the monitor size you look at? The site in question is www.catbent.com and there should be 5 links on the bottom.
The W3c Recommendation for element sizes is %
example : excluding <head>
framesets are so passe
the styles would normally be in an external css file, but I got lazy
example : excluding <head>
html Syntax (Toggle Plain Text)
<div style='text-align:center; width:100%;'> <a href="Body.html">Welcome to the World of Cat Bent</a> </div> <div style='text-align:center; width:100%;'> <img src="Images/Purple_lips.gif" width="385" height="481" /> </div> <div style='text-align:center; width:100%; bottom:0;'> <a href="about.html" onmouseover="MM_swapImage('About','','Images/CatBent_aa_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_aa.gif" name="About" width="15%" height="100" border="0" id="About" /></a> <a href="yourvoice.html" onmouseover="MM_swapImage('Your Voice Vocal Studio','','Images/CatBent_yv_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_yv.gif" name="Your Voice Vocal Studio" width="20%" height="100" border="0" id="Your Voice Vocal Studio" /></a> <a href="mmss.html" onmouseover="MM_swapImage('Musical Mischeif','','Images/CatBent_mmss_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_mmss.gif" name="Musical Mischeif" width="20%" height="100" border="0" id="Musical Mischeif" /></a> <a href="creative.html" onmouseover="MM_swapImage('Creative','','Images/CatBent_cc_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_cc.gif" name="Creative" width="20%" height="100" border="0" id="Creative" /></a> <a href="contact.html" onmouseover="MM_swapImage('Contact','','Images/CatBent_contact_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_contact.gif" name="Contact" width="15%" height="100" border="0" id="Contact" /></a><a href="catbent.com/contact" onmouseover="MM_swapImage('Contact','','Images/CatBent_cc_rollover.gif',1)" onmouseout="MM_swapImgRestore()"></a></div>
the styles would normally be in an external css file, but I got lazy
Last edited by almostbob; Aug 26th, 2009 at 11:23 pm.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
it may take redesigning the link images, so that they scale well
after all, blackberry is 200*200px screen, NO image button looks good on a blackberry
not an answer to the question, but - trying to work out why the heavy overhead of image buttons and javascripts, when css can do the same thing very short code Note: 'script' is not necessarily correct, didnt bother to look up a proper font name
Note 2: "em" font sizes rescale automatically to screen resolution to make sure, http://www.browsershots.org is a useful aid, to make sure your site works in different browsers
after all, blackberry is 200*200px screen, NO image button looks good on a blackberry
not an answer to the question, but - trying to work out why the heavy overhead of image buttons and javascripts, when css can do the same thing very short code
css Syntax (Toggle Plain Text)
<style type='text/css'> a.menu { font-family:'script'; font-size:1.5em; font-weight:normal; } a.menu:hover { font-family:'script'; font-size:2em; font-weight:bold; } </style>
Note 2: "em" font sizes rescale automatically to screen resolution
html Syntax (Toggle Plain Text)
<a class='menu' href="contact.html">Contact Us</a>
Last edited by almostbob; Aug 27th, 2009 at 1:04 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
•
•
Thanks for the tip on the ems! Looks good except now that the hover is bold, it displaces the rest of the links. Any suggestions?
css Syntax (Toggle Plain Text)
<style type='text/css'> a.menu { width:19%; bottom:0; font-family:'script'; font-size:1.5em; font-weight:normal; } a.menu:hover { width:19%; bottom:0; font-family:'script'; font-size:2em; font-weight:bold; } </style>
Last edited by almostbob; Aug 27th, 2009 at 2:01 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Jul 2008
Posts: 101
Reputation:
Solved Threads: 9
Yes, I'm running Ubuntu. Of course.
![]() |
Similar Threads
- Diamond??? (C++)
- Power supply maybe? (Cases, Fans and Power Supplies)
- Trouble with Dell notebook (Troubleshooting Dead Machines)
Other Threads in the HTML and CSS Forum
- Previous Thread: CSS and color transparency
- Next Thread: CSS and iframes
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






