Topic : Want to set a default zoom level for safari? Here's how you do it.

This question is not answered. "Helpful" answers available: 2 . "Solved" answers available: 1 .



            Permlink
            Replies : 24 - Pages : 2 [ 1 2 | Next ] - Last Post : Oct 29, 2009 1:04 PM by: dearlt Topics : [ Previous | Next ]
dearlt

Posts: 13
Registered: Aug 13, 2009
Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 13, 2009 11:18 AM
 

If you like to set a default zoom level for safari so you don't have to hit Ctrl+ (or Ctrl-) every time you start Safari and open a new tab, here's how you can do that. This should work on Safari for mac, too:

1) create a file named defaultzoom.css (or any name you like, just make sure it has a css extension.)

2) copy and paste in the following:

body {
zoom: 130%;
}

change 130 to whatever number suits you. >100 means zoom in, <100 means zoom out. Don't forget the % percent sign!

3) in safari, go to Preferences > Advanced. Under style sheet, select Other... and point to the file you created.

4) you may need to restart safari for the change to take effect.

Voila. Hope that helps someone.

  Windows Vista    

tlou37

Posts: 12
Registered: Dec 29, 2006
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 14, 2009 11:26 PM   in response to: dearlt
 

Thank you!!!! The new zoom in Safari 4 is excellent now that it retains the page formatting but have had no luck finding a way to set the default zoom until now. Great little tip. Thanks again.

Macbook Pro Core 2 Duo   Mac OS X (10.5.8)   2.2 GHz 2 GB RAM  
phased

Posts: 2
From: australia
Registered: Aug 20, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 20, 2009 3:47 AM   in response to: dearlt
 

hi there,

i'm having trouble implementing your css. this is my first time creating css. i'm on mac os.
i used textedit to create a .txt file, then altered to an .css via 'get info' in finder (no option to save directly as .css in textedit).
i have closed and reopened safari to no result.

can anyone shed some light on the matter? as a new mac user i'm really enjoying safari but it's killing me not being able to set the default zoom to 120%.

in textedit, i have literally copied:

body {
zoom: 120%;
}

that's correct, right?

ub macbook pro   Mac OS X (10.5.8)    
dearlt

Posts: 13
Registered: Aug 13, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 20, 2009 7:46 AM   in response to: phased
 

did you remember to tell safari to use your css? (see my original post)

could be that this trick does not work on mac. however, the other person who replied seems to be using a mac and got it to work.

  Windows Vista    
Drusus


Posts: 158
From: Manchester, UK
Registered: Jan 19, 2005
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 20, 2009 6:50 PM   in response to: dearlt
 

Works brilliantly here on my MacBook Pro.

I needed this becaus for some odd reason, since i updated to safari 4.0.3, Ctrl+ has ceased to work within Safari, but works just fine in other programs. But I can still zoom out in safari using Ctrl-

Crazy eh?


Also, I found using Textedit on my Mac, I could just ask it to save as defaultzoom.css by just adding the css extension in place of the txt that comes up. It does warn you that its an unusual extension, but does allow you to proceed if you want.

Thanks again :-)

MacBook Pro 15" (Unibody), 4GB Ram, 20' iMac G5 PowerPC (iSight) 2.5GB Ram,   Mac OS X (10.5.8)   Airport Extreme Base Station 802.11n iPhone 3G, 40GB iPod Photo, 4GB White Nano,  

phased

Posts: 2
From: australia
Registered: Aug 20, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 21, 2009 12:39 AM   in response to: Drusus
 

"Also, I found using Textedit on my Mac, I could just ask it to save as defaultzoom.css by just adding the css extension in place of the txt that comes up. It does warn you that its an unusual extension, but does allow you to proceed if you want."

Brilliant. When I did this, it worked.

Thanks, so much. Was very hesitant to move away from Safari but being unable to set the default zoom meant I almost had to. Thanks, once more.

ub macbook pro   Mac OS X (10.5.8)    
Mayo247

Posts: 20
From: FL
Registered: Sep 19, 2008
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 30, 2009 7:15 AM   in response to: dearlt
 

Thanks dearlt for you post, and thanks for a perfect subject. I was able to find your post in two clicks and implenetent your solution with ease. I have been clicking Ctrl + on every page I been opening for a year and just knew others had issues with this.

Thanks again.

MacBook   Mac OS X (10.5.5)    
gabvoie

Posts: 2
From: Canada
Registered: Aug 30, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 30, 2009 10:23 AM   in response to: Mayo247
 

Very useful mod but I can't seem to get it to work. When trying to use Drusus tried in Textedit I get the following message:

"You cannot save this document with extension “.css” at the end of the name. The required extension is “.rtf”."

It gives me the option to use both css and rtf extensions, cancel or use .rtg

Following the initial instructions of dearit, I am unable to get this to work.

Unibody Macbook Pro 17"   Mac OS X (10.5.8)    
Drusus


Posts: 158
From: Manchester, UK
Registered: Jan 19, 2005
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 30, 2009 10:28 PM   in response to: gabvoie
 

I'm guessing that you probably have Textedit set as a Rich Text format as your default setting. Your document must be in Plain Text format.

Wen you have the document open that you wish to save as css extension, go to got to the menu named "Format" you will see the option to "Make Plain Text" then give the document the appropriate name and add .css (that's dot css).

A Warning will come up stating that txt is the standard extension, but you will be given the option of txt or css

That's all their is to it.

Hope that sorts you out. :-)

MacBook Pro 2.8ghz 15" (Unibody), 4GB Ram, 20' iMac G5 PowerPC (iSight) 2.5GB Ram,   Mac OS X (10.5.8)   Airport Extreme Base Station 802.11n iPhone 3G, 40GB iPod Photo, 4GB White Nano,  
gabvoie

Posts: 2
From: Canada
Registered: Aug 30, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Aug 31, 2009 4:30 PM   in response to: Drusus
 

Awesome!

It now works. Thanks for your help.

Unibody Macbook Pro 17"   Mac OS X (10.5.8)    
oscarguit

Posts: 11
From: Spain
Registered: Oct 5, 2008
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Sep 3, 2009 1:29 AM   in response to: dearlt
 

Very good tip, but it seems to have some problems.
I was just trying it and i found that in Gmail you have to use horizontal scrolling to see the logout link, because the page layout does not adjust to the screen size. On the other hand, if you start with a 0 zoom level and then you use Ctrl+, the behavior is correct.
Could you confirm if the problem is general or limited to my config/computer?

Macbook   Mac OS X (10.5.8)    
dearlt

Posts: 13
Registered: Aug 13, 2009
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Sep 3, 2009 9:17 AM   in response to: oscarguit
 

Yes you are right!

This CSS zooming is a crude hack. I think it basically treats a web page like a pdf document where you just enlarges everything.

When you zoom manually, safari does a smarter sort of zoom where it enlarges but tries to keep widths of the elements the same size, reflowing text where needed and scrolling only when necessary.

If the web page has a fixed size that is smaller than your browser window, like this forum, css zoom works ok. But with a page like gmail, which has no width constraint, you get into trouble.

Hmm, wait, I just checked out wiki, which also uses up all available screen real estate, but does NOT have this problem.

Notice in gmail, even if you zoom way out below what should be 100%, the login is still off the screen. The font gets real small but the width of the page stays the same. The css zoom basically "sticks" and isn't completely reversible.

Bottom line: you have to decide which is more annoying: having to hit Ctrl+ for every tab you open, or running into some problematic pages.

On Windows, I use autohotkey (a kdb and mouse macro scripting program) to switch off the CSS on the fly when I need to. I think Mac has similar capability built in, right? If I were really clever, I guess I could program autohotkey to send a few ctrl+ whenever it detects a new window or tab in safari, but I'm not there yet.

Bottom bottom line: Apple needs to add this feature. It's a pretty basic accessibility feature. Doesn't Apple have like an accessibility guru/advocate?

  Windows Vista    
fjsdofnsjgv

Posts: 209
From: Everywhere
Registered: Mar 3, 2008
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Sep 22, 2009 6:11 PM   in response to: dearlt
 

I did all of the above -

Made file with textedit (copy paste)
Changed the ending to .css
in Safari-preferenes-Advanced-SheetStyles-defaultzoom(the file I created and saved to My documents)

Nothing happens !
I even changed one time to 200% just to see - nothing happens.

Please Help

I have been crawling on my knees for months in the Defaultless Zoom Safai desert :C

Macbook Unibody 2.4 GHz Core 2 Duo 4 GB MHz   Mac OS X (10.5.8)   Safari 4.0.3  
fjsdofnsjgv

Posts: 209
From: Everywhere
Registered: Mar 3, 2008
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Sep 22, 2009 6:37 PM   in response to: fjsdofnsjgv
 

PROBLEM SOLVED !! UnFu%#ing Believable

It was due to the rich text font in text edit.

It MUST be copied from here into Textedit which is already in Plain Text format.
(TextEdit-preferences-plaintext)

You have created a miracle - Finally Safari has this Normal option

Thank you Thank you Thank you

Macbook Unibody 2.4 GHz Core 2 Duo 4 GB MHz   Mac OS X (10.5.8)   Safari 4.0.3  
pulgui

Posts: 2
From: Spain
Registered: Feb 28, 2008
Re: Want to set a default zoom level for safari? Here's how you do it.
Posted: Sep 30, 2009 1:44 PM   in response to: dearlt
 

Great. Thanks a lot. I were looking for a long time. Really runs!!!

iMac, 2,66, 20'   Mac OS X (10.5.8)    
Pages : 2 [ 1 2 | Next ]
Back to Topic List Back to Topic List
Topics : [ Previous | Next ]