Text sizing

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
:(
it didnt work. but thx anyways. i'll have to look more...
 
0
Close
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
Close
YES, it works now... but i had to use dreamweaver to make it work...
 
0
Close
Re: text sizing

Originally posted by SAMSON
design looks food...


Mmmm.... Food design... 2 of my favourite things :) :rolleyes:
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back