PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > Graphic Design/Multimedia/Flash/Shockwave
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Search this Thread
Old 5-2-02, 01:55 PM   #1
pcgui2001
 
Posts: n/a
Question Browser text size!!!

Hey guys,

i just stumbled onto some problems, see if u go to view- text size, on ur browser window u get diff. sizes to view the text on the browser. is there a way to control this so that when people look at my website this doesnt affect it, or is this something i cant control??

Thanks guys!!
 
Old 5-2-02, 02:24 PM   #2
komik
Drag Racer
 
komik's Avatar
 
Join Date: Nov 2001
Location: Arizona
Posts: 364
Reputation: 5
style sheets

If I remember correctly. Cascading Style sheets override this. And the style sheet take precedence over what the user selects. This is suppose to force a specific sizes.

But I am not entirely sure, if someone else could confirm....
__________________
Ultimate Sand Drag Site
http://mwsandracing.com

Excellent Web Design and Imagery Site
http://www.zldesigns.com
komik is offline  
Old 5-2-02, 03:00 PM   #3
alphadesk
 
alphadesk's Avatar
 
Join Date: Dec 2001
Location: Gulfcoast, TX
Posts: 6,911
Reputation: 102
Well,

I just did a little check. I have style sheet code on all pages and it still changed. Maybe somone with a linked style sheet can check and see if it overides.
__________________
Thanks,
AlphaDesk

Those who can read and don't are no better off than those who can't. - Sam Clemens
alphadesk is offline  
Old 5-2-02, 03:11 PM   #4
pcgui2001
 
Posts: n/a
hey!

guys, as soon as u guys r able to figure this out for me, im thinking ur going to have to help me out with all this cascading style sheets and style sheets and all these things bc the truth is i really have no idea what u guys are talking about. i mean i've seen these things in dreamweaver but i dont know how to use them. and im hoping these style sheet things can be done to an already developed website.... if u remember http://www.theclubdirectory.com has a lot of info that this text size problem can affect. and there are already like 60 pages so it would take some time if i have to be deleting stuff...i really dont know, u guys can tell me how i go about to doing this.

thanks for the help once again
 
Old 5-2-02, 03:55 PM   #5
Jess
 
Jess's Avatar
 
Join Date: Nov 2001
Location: Planet Earth
Posts: 289
Reputation: 10
The order of the "cascade" in CSS is:
1. Inline
2. Embedded
3. Linked

But anyone's browser can override the CSS if the user sets their
own fonts and text size in the preferences.
Jess is offline  
Old 5-2-02, 04:13 PM   #6
komik
Drag Racer
 
komik's Avatar
 
Join Date: Nov 2001
Location: Arizona
Posts: 364
Reputation: 5
tried the same

I tried the same thing and noticed that some of mine changed and some did not. The text between the span tags did not change and those outside of the span tags did.... This may be a way around this...not sure ...will test
__________________
Ultimate Sand Drag Site
http://mwsandracing.com

Excellent Web Design and Imagery Site
http://www.zldesigns.com
komik is offline  
Old 5-2-02, 04:25 PM   #7
Ddr
 
Ddr's Avatar
 
Join Date: Jan 2002
Posts: 949
Reputation: 5
another thought

I was only half seriously making this suggestion, but it does have some merit.

You could use javascript to open window(s) that dont have a toolbar in them, then someone couldn't click on View/Text Sizing anymore.

Just a thought

Dale
Ddr is offline  
Old 5-2-02, 05:13 PM   #8
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
Check out the source code of this page:
http://www.fantasyjackpalance.com/fj...nth/index.html

It uses CSS to specify an exact text size, but instead of using the normal size units, it uses PIXELS as the size unit (12px in this case). This means that the text will always be exactly the same size in any browser (unless I've been severely mislead).

The flip side is that the text doesn't print out as smoothly as if it were the normal method, but you might not care about this. My pages are never printed so it's cool with me.....

Otherwise, you may need different CSS sheets for different browsers.

bfc


here's the css code isolated. It's 12pixels, whiter, and the font's arial. This also covers link decorations:
<style media="screen" type="text/css"><!--
p { color: #cccccc; font-size: 12px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular, "Times New Roman", Georgia, Times }
body { color: #cccccc; font-size: 12px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular }
td { color: #cccccc; font-size: 12px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular }
a:link { color: #b7b7b7 }
a:visited { color: #b7b7b7 }
a:hover { color: #cacaca }
--></style>
bettyfordclinic is offline  
Old 5-2-02, 06:10 PM   #9
pcgui2001
 
Posts: n/a
hey BFC

where would i put that code/script? and would i insert it just as u have it right there except for color changes? we can use this page for example http://www.theclubdirectory.com/club rio home page.htm .
 
Old 5-2-02, 06:12 PM   #10
pcgui2001
 
Posts: n/a
thats a bad link ur going to have to type it in....i know i put spaces in the file name, my bad
 
Old 5-2-02, 08:28 PM   #11
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
Here you go.

There was actually already a CSS script way down the bottom of the code that specified a bunch of custom scrollbars and stuff. I moved it up into the header and added in the size, which is at 14px, but can be changed to whatever you want. Sometimes you won't see the change until you check it in your browser. Set it to 30px and watch it jump!!! Fonts can be set in either the script or the old way, but setting the font (or font size) on the page over-rides the script. You've got two differrent fonts (eurostile???) so I've left it with just the size. I've put in comments so you can't miss the script. you'll see all the extra stuff that was already there after the size.

http://www.fantasyjackpalance.com/fjp/test/club4.html

If you want to mess around more with CSS, use a doc with less stuff going on. I can supply one if you like. There was a lot of distracting code in your page which made it harder to make out (frontpage I think???)

bfc
bettyfordclinic is offline  
Old 5-2-02, 09:13 PM   #12
pcgui2001
 
Posts: n/a
Bfc, i see where u relocated the script for the scroll bar and almost the whole thing is diff. i also see that it works bc i try to change the font size in view and it wont change it, but im not sure what to do to each and every page so they do the same as this one. i tried comparing and there r a lot of differences but just dont know where to start..i could probably move the scroll bar script up to the top where u put it but thats about it.

lol i am lost. i hope u can help me out, and in case u didnt notice already i dont know much about scripts

Thanks for ur help, i look forward to your response
 
Old 5-2-02, 09:40 PM   #13
pcgui2001
 
Posts: n/a
never mind that last reply

IT WORKED!!!! thank you very much bfc!!
 
Old 5-2-02, 09:52 PM   #14
pcgui2001
 
Posts: n/a
one thing though

there is one thing this didnt affect though....... the "powered by" down in the bottom. why is this?

everything else works great!
 
Old 5-2-02, 10:35 PM   #15
Ddr
 
Ddr's Avatar
 
Join Date: Jan 2002
Posts: 949
Reputation: 5
Thumbs up great

I really have enjoyed this thread and learned a lot myself. Thanks people
Ddr is offline  
Old 5-2-02, 11:37 PM   #16
pcgui2001
 
Posts: n/a
:p im probably getting on ur nerves but....

if u take a look at this page http://www.theclubdirectory.com/camachos page.htm
u will see that the font size change doesnt affect the body text but it does affect the "powered by:" in the bottom. it also affects other text for example in this page... http://www.theclubdirectory.com/alternative.htm
it affects the word "pasadena".

is there a way to apply the style sheet to the specific layers/text like pasadena??

thanks
 
Old 5-3-02, 08:31 AM   #17
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
Text formatting and colour on the page overrides the css. For the css to take effectm there must be NO text size.

The Powered bit is formatted, thus overriding the CSS. Here's the code as it's on the page:
<font color="#FFFFFF" size="2"><font face="hooge 05_57">POWERED
BY</font>

I'll post a bigger explanation of CSS with more examples soon. Thought I might just copy it from the GoLive manual!!! Hopefully later on today. CSS is very, very useful.

bfc
bettyfordclinic is offline  
Old 5-3-02, 09:37 AM   #18
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
OK.

I typed up a thing explaining it all in even more detail. have a nice look:
http://www.fantasyjackpalance.com/fj...kes-css-1.html

bfc
bettyfordclinic is offline  
Old 5-3-02, 04:51 PM   #19
pcgui2001
 
Posts: n/a
Thumbs up

hey great!!! it worked. uve been very helpful bfc. that page u posted was very helpful.

thanks, i learned a lot
 
Old 5-3-02, 06:22 PM   #20
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
Cool !!!

Have fun,

bfc
bettyfordclinic is offline  
Old 5-15-02, 11:27 PM   #21
pcgui2001
 
Posts: n/a
Hello again

If i put a font on my site but the person that enters the site doesnt have the font....will they still be able to see it? if not is there a script out there somewhere that would alow them to see my font even if they dont have it?

Thanks
 
Old 6-5-02, 01:48 AM   #22
pcgui2001
 
Posts: n/a
hey

i have another question about browser text sizes....

howcome the style of the text sizes wont work in tables. for example in the table where i have the contact form fields, i have the name for each field ("name, email address, etc") take a look at the page so u can see what im talking about, changes the text size on your browser to see what i mean. http://www.pcdsigns.com/contact.htm

i would like to know how to make the script affect it.

thanks
 
Old 6-5-02, 09:12 AM   #23
bettyfordclinic
 
bettyfordclinic's Avatar
 
Join Date: Nov 2001
Location: Dublin Ireland
Posts: 167
Reputation: 5
----------Fonts------------------------------------------------------------

If they don't have your font there's no real easy way around it. Simply arranbge your CSS with the fonts in order of preference and their system will use the next font in the list ("Superhighway, Arial, Times" = no superhighway their system will use arial, no arial their system will use times).

----------Tables and Forms---------------------------------------------

Check out the CSS script in the header of this page:
http://www.fantasyjackpalance.com/fj...amaha-cs5.html

So all you do is use "tr" and "td" like you would have used "H1" or "body". The text in the tables will then comply.

For CSS in forms (a different kettle of fish) here's what you can do. Create a new class (let's just call it "t1" for now, and it looks something like this:
.t1 { color: #000; font-size: 10px; font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular }

Then you just lay out your form (notice the CLASS bit):
<form name="mainForm">
<center>
<input type="text" CLASS="t1" name="mainTextScroller" size="65"></center>
</form>

And that should take care of funny looking text in forms!!!

bfc
__________________
here I go...
bettyfordclinic is offline  
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:51 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.