There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot computer connection crash css dell drive driver drivers email error ethernet excel explorer firefox firefox 3 freeze hard drive internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express password printer problem problems ram router security slow software sound trojan usb virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Css question involving 2 text/css


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
OneLuv's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Dec 2006
Location: Brown Deer, WI
Experience: I know a little:)
03-May-2007, 08:16 PM #1
Solved: Css question involving 2 text/css
Hi, Im already using an external .js for my side menu. the script tag has in it text/css. I was trying to learn how to use exteral css to be able to change the color, fonts etc. My goal is to use external css to be able to streamline and change the pages of my website all at once. (Not sure if its possible the way my pages are set up. Triple Border - tables)

How can I create this external css to change my fonts, without interferring with the external .js file that has text/css in the script tag?
__________________
It's a figment of my imagination.

Computer Specs:
Dell Dimension E521
AMD x2 3600+
2G RAM Dual Channel
Vista Home Premium
320gig internal HDD
500gig exteranl HDD
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
03-May-2007, 11:09 PM #2
More than likey your internal css on the js file is a different style, so you can define text etc for the rest of the page so long as your elements dont mix.

Example, if your js file has an element named
Code:
.whiteText {
	font-family: verdana,helvetica;
	color: #ffffff;
	font-weight: bold;
	font-size: 12pt;
}
and your page CSS also has an element named whiteText they would collide and more than likey the page's css would take charge, rendering the .js css invalid

Out of curosity, what is the js internal css elements? Can you post them here?
__________________
Good Luck on your fix

My real hobby..JoyCo
My real Job..(Second Hobby) IAFF Local 1865
Like the sites? My hobby is the one that created them!
OneLuv's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Dec 2006
Location: Brown Deer, WI
Experience: I know a little:)
03-May-2007, 11:29 PM #3
Sure if I knew what internal css elements were. (Too new to discuss). I can post the part of the .js that I was to put in the head section of my pages. Its below:


<style type="text/css">
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03' for doctype bug
//For full source, and 100's more DHTML scripts, visit http://www.dynamicdrive.com

</SCRIPT>

<SCRIPT SRC="ssmItems.js" language="JavaScript1.2"></SCRIPT>


The purple underlined stuff is what I was questioning. I was following this css tutorial(If you know a good one, please share), I wanted to make it external for the reason I stated in the original post. I got confused doing the tutorial I think because I was trying to make it fit what I wanted it to do, instead of making all the fonts on the pages uniform. In specific the <h1>, I wanted to specific something different for a few pages but they all carry the <h1> tag. Let me ask this. Will it be possible to control my entire site using css? And if so, will I have to ditch the triple border tables ?(I will if I learn how do to a gradient like back ground) The work in progress is www.oneluvsdesire.com (it should be visible)

Thanks in advance.

Shannon
__________________
It's a figment of my imagination.

Computer Specs:
Dell Dimension E521
AMD x2 3600+
2G RAM Dual Channel
Vista Home Premium
320gig internal HDD
500gig exteranl HDD
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
04-May-2007, 12:05 AM #4
These are the internal css elements inthe js file;
Code:
<style type="text/css">
<!--
A.ssmItems:link {color:black;text-decoration:none;}
A.ssmItems:hover {color:black;text-decoration:none;}
A.ssmItems:active {color:black;text-decoration:none;}
A.ssmItems:visited {color:black;text-decoration:none;}
//-->
</style>
and on the js file
Code:
menuBGColor="Purple";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=150; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="Comic Sans MS";
hdrFontSize="2";
hdrFontColor="#D4C0F0";
hdrBGColor="#5108A4";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Comic Sans MS";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#B187EF";
linkTarget="_top";
linkAlign="Left";
barBGColor="#5108A4";
barFontFamily="Comic Sans MS";
barFontSize="2";
barFontColor="#D4C0F0";
barVAlign="center";
barWidth=20; // no quotes!!
barText="OneLuvs Place"; // <IMG> tag supported. Put exact html for an image to show.
Your elements are pretty unique, you wont have any problems with the css sheets colliding.

You can create a new css document that the rest of the pages can use no problem.

Link to it on every webpage by adding into the <head> area
Code:
 
<HEAD>
    <LINK href="css/site.css" rel="stylesheet" type="text/css">
  </HEAD>
the link to the css sheet is relative in every case so be sure to mind that onthe pages if they are in their own folders in the site.
__________________
Good Luck on your fix

My real hobby..JoyCo
My real Job..(Second Hobby) IAFF Local 1865
Like the sites? My hobby is the one that created them!
OneLuv's Avatar
Computer Specs
Senior Member with 201 posts.
 
Join Date: Dec 2006
Location: Brown Deer, WI
Experience: I know a little:)
07-May-2007, 09:40 AM #5
WOW! I'm going to know that soon, but today it did a world of good for me thanks.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:59 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.