Unstoppable Domains — Expired Auctions

Text sizing

SpaceshipSpaceship
Watch
S

SAMSON

Guest
Guest
Im making a site and design looks food... But if anyone will change text parameters in his browser (increase size, etc) then the whole design will be deformed...

Is there any java code or simply an html command that will forbid changing size of the text?
Im a beginner in web making so I will really appresiate your help.

Regards.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You can do that with CSS



If you add something like this to the head section of your page, then all the text in the body section of your page will be sized to 10px and when someone tries to increase their font size it shouldn't change, or atleast I don't think so. :D

<style type="text/css">
body {
font-size: 10px;
}
</style>

It can get alot more complex than that though, but it's really not to hard to learn. :)

Here's how my example would look:

<html>
<head>
<style type="text/css">
body {
font-size: 10px;
}
</style>
</head>
<body>
Your content here
</body>
</html>

You can give it a try and experiment with it and see if it works. :webdev:
 
0
•••
:(
it didnt work. but thx anyways. i'll have to look more...
 
0
•••
imo if the text size changes make the site look wrong i think thats thats bad web design what if someone with bad eyesight visits your site and they can only use this small font?
 
0
•••
YES, it works now... but i had to use dreamweaver to make it work...
 
0
•••
Re: text sizing

Originally posted by SAMSON
design looks food...


Mmmm.... Food design... 2 of my favourite things :) :rolleyes:
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back