views:

65

answers:

6

For testing

I don't want to upload css to FTP on each change till site complete , but site and content is online. (i'm not talking about saving page locally then apply css)

Can i just apply css locally to any online page.

it would be easier to edit and see changes locally till css work end.

and i want to see applied effect on FF and IE.

How to do that? Is it possible.

+2  A: 

http://getfirebug.com/firebuglite

echoback
this is related to my question
metal-gear-solid
+1  A: 

If the site you are testing for is not facing the public so speed doesn't matter, you could set up a service like dynDNS and turn your work PC into a web server. (Caveat: It's lots of work and you need to secure it.) You could then have all your style sheets on your local computer, and have your on-line site reference them like this:

<link rel="stylesheet" href="http://jitendra.dyndns.org/styles/styles.css"&gt;
Pekka
is there any option in IE and FF to achieve this
metal-gear-solid
@Jitendra No, this has nothing to do with browsers. You would also need to set up a local hosting environment (if you don't already have one.), so this is a solution with a fair amount of work.
Pekka
Firebug is different thing I know but my question is different
metal-gear-solid
@jitendra what speaks against directly uploading the CSS whenever a change occurs? Is this too bothersome in your working environment?
Pekka
yes because i can't access CSS from FTP but i can add css from CMS's UI and CMS ui doesn't have Syntax highlighting.It's a very unusual situation for me.
metal-gear-solid
+1  A: 

I'd use a proxy such as Charles and use its URL remapping features to divert requests for the stylesheets to local files.

David Dorward
Great idea, but he would probably have to have a local web server running in order to serve the CSS - if you rewrite the URLs to `file:///` ones, the browser might give trouble because of security restrictions. Then again, it might not, it being only CSS.
Pekka
No, it wouldn't. That's why I said "local files" and not "a local web server" (you **can** rewrite to a different HTTP URL if you like, but local files are fine). And browsers won't give you security issues, the browser asks for http://example.com/foo.css and the proxy gives it a local file instead. The browser doesn't know the difference.
David Dorward
+1  A: 

Sounds like you could use version control. Try http://git-scm.com/ or http://subversion.tigris.org/ ( http://tortoisesvn.tigris.org/ for a non-command line version)--it does a lot more, but it would allow you to do what you want, and what else it does it sounds like you might need.

Talk to your server admin about setting one or another up.

D_N
I'm for using version control any day, but how would it help the OP's situation?
Pekka
He wants to 1) save his changes on a local machine and 2) have them affect an online site *without* uploading his changes. Editing your hosts file and using version control can get you this without any real disconnect, so long as you keep in mind what you're seeing isn't live until you commit your changes.
D_N
(I dunno, I assumed fiddling with your hosts file to have a common place to preview the result was standard stuff. Bad assumption on my part. It's just how I've used it.)
D_N
@DN I see. This is an interesting idea, as it bypasses the installing of a web server. But you're probably not going to be able to convert `/styles/styles.css` to a local repository request using a simple hosts file, not without some URL rewriting - for which, again, you would need a fully equipped web server installed.
Pekka
I bow to your greater knowledge. I do what the sys admins tell me, and smile and nod and complain if they lock me out, is all.
D_N
+1  A: 

If you have web developer toolbar then you can view the current css and edit the same and then can see the changes ....

Its available for both firfox and IE

Ie web developer toolbar for IE

and Firefox web developer toolbar for firrefox

kvijayhari
+2  A: 

I think this is the closet way

http://209.85.229.132/search?q=cache:_7_eRIBRrhoJ:www.nealgrosskopf.com/tech/thread.php%3Fpid%3D60+http://www.nealgrosskopf.com/tech/thread.php%3Fpid%3D60&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=in&amp;client=firefox-a

but only for firefox

Edit : 29 April 2010

I found another better way

http://www.tomjewett.com/accessibility/508-eval-tools.html

In FireFox, from the Web Developer toolbar, select CSS -> Add User Style Sheet, browse to wherever you stored it and click the Open button. When you are finished, just un-check the "Add User Style Sheet" on the toolbar CSS menu.

In Microsoft Internet Explorer, select Tools -> Internet Options... -> Accessibility... and check the "Format documents using my style sheets" box. Using the Browse button, open the lowvis.css style sheet from wherever you stored it, and click OK to both the Accessibility and the Internet Options panels. When you are finished, simply un-check the "...my style sheets" box on the Accessibility panel.

metal-gear-solid
+1 Great find! For a cross-browser solution you will need something else, though. Even if you find something similar in IE8, it won't work in IE7, IE6, Safari, Opera.... Better go with one of the outlined suggestions.
Pekka