4 replies [Last post]
px2co
Offline
newbie
Last seen: 12 years 41 weeks ago
Joined: 2010-02-18
Posts: 3
Points: 5

Hi all,

First off, I'm really not a web coder, I have SOME CSS knowledge, but am not great!

I have a site, which is all working lovely, using a linked style sheet. I need to make a one off HTML email, using the same styled layout, but need to make my style.css local to the HTML file. I'm not having much success. I can see how to add the text stylesheet to the header, how do I do it for the style.layout?

So basically I need to have the styling for each div on this html page.

If it helps, this is my main template code:

- -

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 7 years 12 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

<style type="text/css"> p {

<style type="text/css">
p { color: #00f; }
</style>

This is an example of the way it will appear in the heads tags

px2co
Offline
newbie
Last seen: 12 years 41 weeks ago
Joined: 2010-02-18
Posts: 3
Points: 5

hi, thanks for the reply,

hi, thanks for the reply, will that tag be ok to use for the info that's on my style layout, rather than on my text css? It's more the divs I'm worried about than the text style.

CupidsToejam
CupidsToejam's picture
Offline
Guru
Florida
Last seen: 7 years 12 weeks ago
Florida
Timezone: GMT-4
Joined: 2008-08-15
Posts: 2637
Points: 1556

what? dont copy my style, as

what? dont copy my style, as its just an example. style things however you want. But if you need your css to be embedded, thats how you do it. If this is an email layout, you may want to consider using inline styles, as they work best for this need.

dmikester1
Offline
Regular
Last seen: 12 years 41 weeks ago
Timezone: GMT-6
Joined: 2007-05-24
Posts: 36
Points: 19

wrong thread! :)

woops!