Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Dynamic Updating?

Status
Not open for further replies.

Bentley22

Programmer
Aug 29, 2001
205
CA
I've coded a CSS document by hand, and now I have to import it into Dreamweaver. I'm also learning dreamweaver at the same time, so this may be a newb question. After I import the CSS, and apply the styles, the text and such in the editor window is still in default view. If I go to preview in browser, it looks fine, however I was wondering if there is a way to show the changes the CSS document will make to the content in the editor window? I have to make this simple enough for my boss to use, so if this is a feature I could turn on, it would help a lot. Thanks.
 
Hello Bentley22!

You have to link to .css file you created.

1) open CSS Styles window (Window > CSS Styles);

2) link to .css file (click samll button Attach Style Sheet at the bottom of the CSS Styles window > browse to file > OK).


That's it. Now you have CSS styles attached to your HTML page. Don't forget about these:

1) you must attach .css file to all HTML files in which you want it to use;

2) to apply some style you firstly need to select object to which this style will be applied - click inside the object > at the left bottom corner select tag responsible for this object (if you want to apply some style to a link, click inside the link and select <a> at the left botom corner > click on desired style in the CSS Styles window);

3) CSS Styles window shows only custom styles and doesn't show styles that redefine HTML tags (like A, P, Hn, etc.)

Good Luck!
 
Yes, I've done all that, and it works fine, but I was looking for a way that would display the formatting to the text while in the editor window. This way I could get a better sense of layout, without having to hit F12 all the time.
 
Some styles can't be displayed in DW. But most styles espesially for text formating work in DW fine.
 
Harumph. All I get is the standard Times New Roman 12pt display of txt, and hyperlinks underlined in blue. No formatting is apparent until I check it in the browser.
 
DW will for sure display text using Times New Roman 12pt, but probably won't blue underline. If you don't see changes with Times New Roman 12pt - it's probably your default font and size are Times New Roman 12pt and there is nothing to change.

One more thing - I don't recommend to use absolute font size (12pt). User may want to change font size in browser and in your case he/she won't be able to do it. Don't forget there are a lot of people with vision dificulties. I would use % instead of pt or px - Times New Roman 100%

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top