| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| New Member | text sizing 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. |
| |
| | #2 (permalink) |
| Senior Member | 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. ![]() <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: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |