U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Internet
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
Reply Start New Thread
 
Old 12-30-2014, 10:55 AM
 
24,503 posts, read 35,961,779 times
Reputation: 12847

Advertisements

Quote:
Originally Posted by Peregrine View Post
No they are not. There is usually just one css file that handles the whole site and multiple pages of html.
To have one CSS file for the entire site would be unusual.... and wildly inefficient.
Reply With Quote Quick reply to this message

 
Old 12-30-2014, 10:59 AM
 
Location: Denver
9,353 posts, read 16,134,983 times
Reputation: 5624
Don't ignore the JavaScript .js files, today's sites have many dynamic features (Ajax, node) that will effect the look and feel of the page.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:04 AM
 
24,503 posts, read 35,961,779 times
Reputation: 12847
Quote:
Originally Posted by Mach50 View Post
Don't ignore the JavaScript .js files, today's sites have many dynamic features (Ajax, node) that will effect the look and feel of the page.
node? In the browser?
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:14 AM
 
Location: Denver
9,353 posts, read 16,134,983 times
Reputation: 5624
Quote:
Originally Posted by NJBest View Post
node? In the browser?
You can write shared node modules for the browser and server.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:20 AM
 
24,503 posts, read 35,961,779 times
Reputation: 12847
Quote:
Originally Posted by Mach50 View Post
You can write shared node modules for the browser and server.
When a node module is run on the browser, it isn't a node module. It's a standard javascript (CommonJS) module. There's no node on the browser.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:23 AM
 
40,195 posts, read 41,790,512 times
Reputation: 16747
I prefer Firebug over the built in developer console in FF but I have been using it for years. You can just right click any part of the page and select inspect element(inspect element with firebug if it's installed). That will take you right to the HTML and corresponding CSS.


Firebug


Quote:
While we are on the subject, aren't CSS and HTML found in different places? They aren't found in the same group of code, are they?
You can find it in three places. Either in the head of the document, inline or external file. Preferably you want it in an external file. The beauty of CSS is you assign classes to your HTML, suppose you have right side DIV for navigation.

Quote:
<div class="rightnav"> ... </div>
In your external stylesheet:
Quote:
.rightnav
{
width: 20%;
}
You only need to change that single line in your external file and it's site wide. Also keep in mind it's Cascading Style Sheet.
Quote:
<p>Some Text</p>

<p class="spcialparagraph">Some Text</p>
Quote:
p
{
font-weight: normal;
}


p.spcialparagraph
{
font-weight: bold;
}
Each of those paragraphs would have different formatting.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:30 AM
 
24,503 posts, read 35,961,779 times
Reputation: 12847
I'm a big fan of Chrome's built-in inspector tools (which is what I use).

I do like how FireFox's solution is a browser built for developers from the ground up and how it integrates with your text editor, etc.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:31 AM
 
40,195 posts, read 41,790,512 times
Reputation: 16747
Quote:
Originally Posted by NJBest View Post
To have one CSS file for the entire site would be unusual.... and wildly inefficient.
That really depends, you're robbing peter to pay paul with the increased requests.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:33 AM
 
Location: Wandering.
3,545 posts, read 5,678,821 times
Reputation: 2654
Quote:
Originally Posted by thecoalman View Post
I prefer Firebug over the built in developer console in FF but I have been using it for years. You can just right click any part of the page and select inspect element(inspect element with firebug if it's installed). That will take you right to the HTML and corresponding CSS.

Firebug
I second the Firebug recommendation. It's a really great tool.
Reply With Quote Quick reply to this message
 
Old 12-30-2014, 11:38 AM
 
24,503 posts, read 35,961,779 times
Reputation: 12847
Quote:
Originally Posted by thecoalman View Post
That really depends, you're robbing peter to pay paul with the increased requests.
Only on the first load.
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:

Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Internet
Similar Threads
Follow City-Data.com founder on our Forum or

All times are GMT -6. The time now is 09:43 PM.

© 2005-2019, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 - Top