Total Idiot alert, can I use a...

User 2897594 Photo


Registered User
322 posts

Hi, I already spent an age making up a CSS style sheet in Expression Web before abandoning it completely and buying VSD, which I love. However, as a complete newbie, I cannot find how the HTML tool works, I have a small white box on the screen, and am finding it hard to even experiment with it! I have a .css style sheet saved on my hard drive that I could use if I could find how to insert it, but at the moment, I can't even seem to find the rest of the code. If I could use my style sheet, would it work like a style sheet in any other web editor program, and style all my pages?
User 2897594 Photo


Registered User
322 posts

Sorry, replying to my own post, but I have been playing with the HTML tool, and pasting in the style sheet code. I have uploaded the style sheet to the server using add files, and put the code including the link in the header box of the HTML. I've even published to see if that changed anything. I cannot see how to apply the .css? Nothing has changed, in fact, nothing happens except a little white box appears. Can someone please help, I'm shortly going to enter the black hole of depression that I experienced using Expression Web. :)
User 463058 Photo


Ambassador
1,085 posts
Online Now

The thing about using CSS with VSD is you don't have the kind of control over IDs and Classes that you will most likely need to have the style sheet affect the correct elements of the page. It's not like you can just link a style sheet or embed the styling in the head of the page and expect it to do with VSD pages what it did with the page it was created for.

You don't need to use the html tool, and then you won't end up with that white box. You can add your own code to the header without it. Just go to the Edit menu and select "Edit Header..."

From there you can add or change any custom header code you like.
User 2897594 Photo


Registered User
322 posts

Thanks. Realistically speaking, I don't really need the .css except for the link bars. My style sheet had them turning a darker gold shade on mouseover, to show that they were navigation links, and clickable. I can't find a way to do that in VSD. I already own flash menu builder, but couldn't find anything I wanted in that either, is it possible to change the properties of the text and still have them as links?
User 463058 Photo


Ambassador
1,085 posts
Online Now

You can use these selectors for links if your page is centered:

<style type="text/css">
#container a {...}
#container a:link {...}
#container a:visited {...}
#container a:hover {...}
#container a:active {...}
</style>


I don't believe the #container div is used unless the page is centered, and you need to have its ID (or the ID of some other element containing the links) to use with your link selectors or they probably won't work correctly.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.