Welcome Guest [Log In] [Register]
Mac + Firefox Users: Coding Help Tip; Easy
Topic Started: Oct 2 2009, 01:39 AM (270 Views)
tiptopolive
Member Avatar
to marijuana
So, when you first start out, you need to know the names of all the sections on the page so you can find them in the css and change them. Well it's not always as obvious as you would like, so here's a tip that will save you from changing everything individually and looking for what it changed on the theme (some of us have done this many, many times).

Firefox users! Do you have the Colorzilla add-on? Well you'll need it. I know this works on my Mac, but I don't know how Colorzilla or even Firefox works on PC's, but it's worth trying.

Here's the basic process.

Posted Image

As you can see, Colorzilla will tell you the name of the class you're hovering over, and the background color (also helpful).

Hope this helps peeps.
Posted Image

Ford GT Vexel WIP (Nov 17)
Goto Top
 
Adam
Member Avatar
Ω sonikshot Ω
i love you tiptop.

Posted Image
--Find Me--
Justin.tv | Deviantart | Myspace | Facebook
Graphics requests filled: 40
Skinning requests filled: 0
Goals >> 100 posts | 250 posts | 500 posts | 1000 posts | +Request Assistant
Posted Image
Posted Image
--- Avoid ripping, use Stock Renders. Please report any rips at Antirip. ---

Goto Top
 
monkeybro
Member Avatar
TZ Frequent
nice :O i love you :P i always had a prob trying to find the right info but this will help me so much

edit: and yes it works for FF on a pc as far as i know. i just downloaded it just then and i dont seem to have a problem with it yet
Edited by monkeybro, Oct 2 2009, 06:45 PM.
Posted Image
Goto Top
 
Delirium
Member Avatar
'Nard Dog
It works the same way on a PC, yeah. It's definitely helpful for up and coming themers.
Shiva , Bleet
Xbox: Live It Up
Goto Top
 
Dardan
Member Avatar
Το ένα και μόνο

I remember finding the color and then using that to tell me what I was editing. Of course, more than one thing had the same color so that created a lot of work. But this one seems like it works differently and should definitely help everyone.

Can I...uhhh..WOW this tut?
Edited by Dardan, Oct 2 2009, 08:48 PM.
Posted Image Posted ImagePosted Image
Goto Top
 
Kuzco
Member Avatar
walktheline.
That's brilliant. ^__^
NOW OPEN!
Posted Image
Goto Top
 
Nicola
Member Avatar
Zatharawrus

It's worked exactly like that on PC for a few years now so don't worry about that ^_^
Goto Top
 
.Spades
Member Avatar
Getting Better
Nice tip, i've had that mod for like 2 years now :P
1nolvorite/spade2
1st themes - 2nd themes

Posted Image
Goto Top
 
Nicola
Member Avatar
Zatharawrus

Just to note something really irritating about the Mac Firefox version: Double click on the colour box to view the colour in the palette with the hex code and moving the mouse over somehow shifts the browser window far over to the right of the screen.
Goto Top
 
Reid
Member Avatar
One likes to believe in the freedom of music...

To coincide with this tip, you can also get the Firebug add-on to test out CSS effects without having to edit the CSS each time and reload each time, which is much more time consuming.

In order to do this - and make sure you have firebug installed - simply click on the firebug icon. A box should open up. Click on the Console tab - you may have to use the down-arrow to enable it, though - and then you should see a blank box with a line at the bottom.

Then just use this layout in the line you can type:
Code:
 
$("css selector here").css("attribute here", "value here");
Then hit enter. Here's an example:
Code:
 
$("td.c_mark").css("background-color", "blue");
This picture is what the stuff looked like before I used the code, and this picture is what it looked like after I entered the code. I also included an example of where you would type the code in the second picture.

If you want to recall a line you've already used, then just press the up arrow when you have your cursor in the text line; it should recall the last line. You can press the up and down arrow multiples times to suit your needs.

This lets you try many, many combinations of fancy CSS stuff without having to reload the page eleventy billion times. Of course, don't forget to update your CSS in the end - firebug is a client-side change, which means it won't carry over if you reload the page.
“Too often we... enjoy the comfort of opinion without the discomfort of thought.” - John F. Kennedy
Goto Top
 
tiptopolive
Member Avatar
to marijuana
Reid
Nov 3 2009, 10:53 PM
To coincide with this tip, you can also get the Firebug add-on to test out CSS effects without having to edit the CSS each time and reload each time, which is much more time consuming.

In order to do this - and make sure you have firebug installed - simply click on the firebug icon. A box should open up. Click on the Console tab - you may have to use the down-arrow to enable it, though - and then you should see a blank box with a line at the bottom.

Then just use this layout in the line you can type:
Code:
 
$("css selector here").css("attribute here", "value here");
Then hit enter. Here's an example:
Code:
 
$("td.c_mark").css("background-color", "blue");
This picture is what the stuff looked like before I used the code, and this picture is what it looked like after I entered the code. I also included an example of where you would type the code in the second picture.

If you want to recall a line you've already used, then just press the up arrow when you have your cursor in the text line; it should recall the last line. You can press the up and down arrow multiples times to suit your needs.

This lets you try many, many combinations of fancy CSS stuff without having to reload the page eleventy billion times. Of course, don't forget to update your CSS in the end - firebug is a client-side change, which means it won't carry over if you reload the page.
Sweet. Is there a way to transfer the changes into the CSS without having to go in and edit the CSS manually?
Posted Image

Ford GT Vexel WIP (Nov 17)
Goto Top
 
Reid
Member Avatar
One likes to believe in the freedom of music...

tiptopolive
Nov 3 2009, 11:25 PM
Sweet. Is there a way to transfer the changes into the CSS without having to go in and edit the CSS manually?
Not that I know of, but it does at least let you experiment with colors, widths, etc. You can also right click on any element, hit inspect element, and then edit attributes or CSS manually. Firebug is just, in general, a great tool. :P
“Too often we... enjoy the comfort of opinion without the discomfort of thought.” - John F. Kennedy
Goto Top
 
Nicola
Member Avatar
Zatharawrus

Firebug...bugs me, lol. I have more space lengthways so I find it easier to edit the CSS in real-time using 'Edit CSS', rather than Firebug which adds to the height of the window instead.
Goto Top
 
Reid
Member Avatar
One likes to believe in the freedom of music...

Nicola
Nov 4 2009, 12:10 AM
Firebug...bugs me, lol. I have more space lengthways so I find it easier to edit the CSS in real-time using 'Edit CSS', rather than Firebug which adds to the height of the window instead.
Ah. I guess since I don't really do much in the terms of appearance, it never really has bothered me before. I usually just test codes on it. :lol:
“Too often we... enjoy the comfort of opinion without the discomfort of thought.” - John F. Kennedy
Goto Top
 
Prue
Member Avatar
Settled In
That's great. Thanks for the tips, tiptopolive and Reid. ^_^
love should be beautiful ...... so why is it killing me?
I'm not a ninja.
real ninjas never reveal their indentity!
Goto Top
 
Zakuraa
Member Avatar
New Member
Oh thank you for that. (:
Goto Top
 
OverTheBelow
Member Avatar
.
Reid
Nov 3 2009, 10:53 PM
Here's an example:
Code:
 
$("td.c_mark").css("background-color", "blue");
This picture is what the stuff looked like before I used the code, and this picture is what it looked like after I entered the code.
Damn, check me out on those photos! XD


Is there any way to edit two attributes at a time with firebug?
Posted Image
Posted Image
Goto Top
 
Reid
Member Avatar
One likes to believe in the freedom of music...

OverTheBelow
Nov 10 2009, 12:41 AM
Reid
Nov 3 2009, 10:53 PM
Here's an example:
Code:
 
$("td.c_mark").css("background-color", "blue");
This picture is what the stuff looked like before I used the code, and this picture is what it looked like after I entered the code.
Damn, check me out on those photos! XD


Is there any way to edit two attributes at a time with firebug?
Code:
 
$("td.c_mark").css({"background-color":"blue", "margin-top":"-20px", "color":"green"});
You can keep adding
Code:
 
, "attribute":"value"
as much as you want with that one. Also, you can select multiple elements:
Code:
 
$("td.c_mark, td.c_sig").css("background-color", "green");
and you can do the multiple attribute trick on multiple elements as well...
“Too often we... enjoy the comfort of opinion without the discomfort of thought.” - John F. Kennedy
Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Tutorial Database · Next Topic »