Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Style Sheets Applied to Font
Old 04-19-2005, 05:10 PM Style Sheets Applied to Font
X10-Director's Avatar
Average Talker

Posts: 20
Location: Seattle
Trades: 0
:: Hello ::

Anyone else having Macromedia Dreamweaver MX 04 issues concerning having style sheets applied to all font? This is driving me nuts anyway to turn this off?.. I am having to go back and hand code font styles.





Thank you
Heather Paulson
Affiliate Marketing Director
s: www.X10.com
e: Heatherp@X10.com
p: 1-253-437-3878 Ext 2236
TF: 1-888-590-2763
www.X10-Free-Website.com
X10-Director is offline
Reply With Quote
View Public Profile Visit X10-Director's homepage!
 
 
Register now for full access!
Old 04-20-2005, 02:42 PM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Cascading style sheets are set up to do just that - cascade. In other words if you create a paragraph style like this

.p {

padding: 0px 0px 10px 0px;
font-family: Arial;
font-size: 10px;

}

and then put it into the head section of your document or link to it as an external file, everytime you put in a paragraph or create a div with the class "p" these styles are going to be applied to it. The best way to override them are to style each paragraph locally, that is if you want one paragraph to be one thing and one to be another you have to override the styles above within each paragraph. You can also have different styles for different paragraphs i.e. p1 has one style and p2 has another style which is the way you should do it. But if you don't differentiate, DW will apply styles to all of the tags within that class.

Hope that helps,

Kaiman

Glenwood Springs, CO - Website Design and Graphics
Kaiman is offline
Reply With Quote
View Public Profile
 
Old 04-20-2005, 04:46 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Yup. All you need to do is learn how to write CSS rules properly. The basics are:

div { }
Applies to all HTML DIV tags

#Navigation { }
Applies to the single element with id="Navigation". (You can't give 2 elements the same ID)

.SomeStyle { }
Applies to all elements with class="SomeStyle" - You can give any number of elements the same class. You can give one element multiple classes by seperating them with spaces, i.e. class="Style1 Style2"

You can combine the selectors too:
div.MyStyle { }
will apply to only DIVs that have a calss of MyStyle i.e.
<div class="MyStyle"></div>
But not:
<p class="MyStyle"></p>
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 04-21-2005, 12:07 PM
howardroark's Avatar
Extreme Talker

Posts: 181
Trades: 0
never had this problem with dreamweaver. sometimes you have to clean up the code manually, if you've been adding css styles via the property inspector. dreamweaver doesn't always remove the css tags when you do so through the property inspector...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
howardroark is offline
Reply With Quote
View Public Profile Visit howardroark's homepage!
 
Reply     « Reply to Style Sheets Applied to Font
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.57197 seconds with 12 queries