473,597 Members | 2,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Style Sheet Question


Hi All,

I can make a page using a style sheet, no problem there. However, if I
make an email and send it out to my list, Yahoo & Hotmail totally
ignore the style tags. It looks fine in Netscape though.....

Question: I've tried linking & embedding the style tags with no luck.
How can I use them inline? I've read that inline style sheets is the
way to go if you want them to work in most email clients.......

Say for example I have the following ID's defined in my style sheet,
how can I use them inlinwe, I'm not sure of the syntax and such:

#idDivBack {
position: absolute;
top: 168px;
left: 150px;
height: 40px;
width: 100%;
background-color: #D0A375; /*#9999CC;*/
border-style: none;
border-width: medium;
font-style: normal;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 27pt;
font-family: Times, serif;
color: #CC9B6A; /*#8888DD;*/
padding: 5px;
text-align: right;
}
#idDivTitle1a {
position: absolute;
top: 143px;
left: 165px;
height: 100px;
font-style: italic;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 38pt;
font-family: Verdana, sans-serif;
color: #D0A375; /*#00CC99;*/
background-color: transparent;
filter: shadow(color=#0 00000, direction=135);
}
#idDivTitle1b {
position: absolute;
top: 140px;
left: 162px;
height: 100px;
font-style: italic;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 38pt;
font-family: Verdana, sans-serif;
color: #663300; /*blue;*/
background-color: transparent;
}

#idDivTitle2a {
position: absolute;
left: 180px;
top: 193px;
height: 40px;
font-style: normal;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 24pt;
font-family: Verdana, sans-serif;
color: silver; /*silver;*/
background-color: transparent;
}
#idDivTitle2b {
position: absolute;
left: 190px;
top: 200px;
height: 40px;
font-style: normal;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 24pt;
font-family: Verdana, sans-serif;
color: #990000; /*navy;*/
background-color: transparent;
}
.BodyArea {
position: absolute;
background-color: #E0E0E0; /*#AAFFEE;*/
color: black;
top: 265px;
width: 680px;
left: 150px;
padding: 5px;
border: medium solid silver; /*#00CC99;*/
margin-bottom: 1cm;
}

@media print {
#idDivBack { visibility: hidden; }
#idDivTitle1a { visibility: hidden; }
#idDivTitle1b { visibility: hidden; }
#idDivTitle2a { visibility: hidden; }
.BodyArea { visibility: hidden; }

#idDivTitle2b {
position: absolute;
left: 150px;
top: 140px;
height: 30px;
font-style: normal;
font-variant: normal;
font-weight: bold;
line-height: 100%;
font-size: 24pt;
font-family: Verdana, sans-serif;
color: #990000; /*navy;*/
background-color: transparent;
}
}
Thanks,

Arthur

Aug 9 '05 #1
33 2486
am****@iwc.net wrote:
I can make a page using a style sheet, no problem there. However, if I
make an email and send it out to my list, Yahoo & Hotmail totally
ignore the style tags.
HTML email is bad.
HTML email with formatting my CSS other then style *attributes* is badly
supported.

Avoid both.
Say for example I have the following ID's defined in my style sheet,
how can I use them inlinwe, I'm not sure of the syntax and such:


Change:
id="idDivBack"
to
style="position : absolute;top: 168px;etc etc etc".
and so on.
--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Aug 9 '05 #2
am****@iwc.net wrote:
I can make a page using a style sheet, no problem there. However, if I
make an email and send it out to my list, Yahoo & Hotmail totally
ignore the style tags. It looks fine in Netscape though.....

Question: I've tried linking & embedding the style tags with no luck.
How can I use them inline? I've read that inline style sheets is the
way to go if you want them to work in most email clients.......


If you want your e-mail to work in most clients, it's best to use plain
text, and include a link to webpage if there's content that absolutely
requires HTML. That said, if you're determined to use HTML e-mail, note
that webmail systems will generally ignore any stylesheet so as not to
ruin their interface (of course with a but of clever stylesheet
rewriting they could get around this, but they're too lazy). Instead
you should put all the CSS within the 'style' attribute of the element
you want formatted.

--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/

Aug 9 '05 #3
> Instead you should put all the CSS within the 'style' attribute of the element
you want formatted.

I never use stylsheets in my HTML-mailings. Instead, I use plain old-fashioned HTML (font-tags and such).

So, I wonder: what is the best solution inline CSS or HTML?
Niek
BTW: This is my first post in this newsgroup. I am a sitebuilder from Tilburg, The Netherlands working for www.sebastian.nl
Aug 10 '05 #4
On Wed, 10 Aug 2005 09:43:22 +0200, 'sNiek <n.*****@sebast ian.nl> wrote:
I never use stylsheets in my HTML-mailings. Instead, I use plain old-fashioned
HTML (font-tags and such).

So, I wonder: what is the best solution inline CSS or HTML?

Neither. HTML you should use for markup only. Analyse the content you're about
to offer and mark it up with some meaning to it. A heading is a heading, a
paragraph is a paragraph, a list is a list and so on. Once you've done that,
style your pages with CSS using a (external) stylesheet.

The thing about stylesheets is that they make maintenance of a site easy (clean
markup, styles all in the same place). Another benefit is for the visitor: an
external stylesheet gets loaded once and is then used for all pages from a site.
It brings down traffic and loading time. Also, when you want to, the looks of a
site are changed very easily (replace the stylesheet, et voila).
BTW: This is my first post in this newsgroup.
Then learn a few things before you post another:
- Don't use HTML; use text only;
- Quote text you reply to, attribute the quote, and reply underneath;
- Delete the text you don't reply to
I am a sitebuilder from Tilburg, The Netherlands working for www.sebastian.nl


- And present URLs as such: <http://www.sebastian.n l/> would be the proper URL
for that.

For some more thoughts on this, in Dutch see:
<http://home.wanadoo.nl/b.de.zoete/_private/2004/12/usenet_best_pra ctices.html>
<http://www.hensema.net/docs/quote/quote.html>

in English:
<http://www.spartanicus .utvinternet.ie/help_us_help_yo u.htm>
<http://groups.google.c om/gr************* *************** ***@newssvr19.n ews.prodigy.com >

And also, you could try the Dutch group some time, niwo:
<http://groups.google.c om/group/nl.internet.www .ontwerp>
The page you refer to BTW, is a horror with many mistakes:
<http://validator.w3.or g/check?uri=http% 3A%2F%2Fwww.seb astian.nl%2Find ex.php%3Fb%3D1% 26d%3D16%26p%3D 31>
With all those tables and use of markup attributes for the looks and layout it
is also a horror to maintain.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'

Aug 10 '05 #5
Els
Barbara de Zoete wrote:
On Wed, 10 Aug 2005 09:43:22 +0200, 'sNiek <n.*****@sebast ian.nl> wrote:
I never use stylsheets in my HTML-mailings. Instead, I use plain old-fashioned
HTML (font-tags and such).

So, I wonder: what is the best solution inline CSS or HTML?


Neither. HTML you should use for markup only. Analyse the content you're about
to offer and mark it up with some meaning to it. A heading is a heading, a
paragraph is a paragraph, a list is a list and so on. Once you've done that,
style your pages with CSS using a (external) stylesheet.


Barbara, Niek is talking about mailings, not sites ;-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Aug 10 '05 #6
On Wed, 10 Aug 2005 10:14:00 +0200, Els <el*********@ti scali.nl> wrote:
Barbara de Zoete wrote:
On Wed, 10 Aug 2005 09:43:22 +0200, 'sNiek <n.*****@sebast ian.nl> wrote:
I never use stylsheets in my HTML-mailings. Instead, I use plain
old-fashioned
HTML (font-tags and such).

So, I wonder: what is the best solution inline CSS or HTML?


Neither. HTML you should use for markup only. Analyse the content you're about
to offer and mark it up with some meaning to it. A heading is a heading, a
paragraph is a paragraph, a list is a list and so on. Once you've done that,
style your pages with CSS using a (external) stylesheet.


Barbara, Niek is talking about mailings, not sites ;-)


Ah, with his use of html message I couldn't read the font very well, misread
that bid. In that case a stylesheet in the head of the template should be a good
option.

The very best option would be not to use html for any kind of e-mail of course,
but that is probably only achievable in that perfect world I live in.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'

Aug 10 '05 #7
"'sNiek" <n.*****@sebast ian.nl> wrote:
BTW: This is my first post in this newsgroup.


Some rules:

1) Configure your software to place an attribute line on top of follow
up messages.
2) Post only in plain text, HTML or mixed format is not welcome here.

--
Spartanicus
Aug 10 '05 #8
Els
Barbara de Zoete wrote:
On Wed, 10 Aug 2005 10:14:00 +0200, Els <el*********@ti scali.nl> wrote:
Barbara de Zoete wrote:
On Wed, 10 Aug 2005 09:43:22 +0200, 'sNiek <n.*****@sebast ian.nl> wrote:

I never use stylsheets in my HTML-mailings. Instead, I use plain
old-fashioned
HTML (font-tags and such).

So, I wonder: what is the best solution inline CSS or HTML?

Neither. HTML you should use for markup only. Analyse the content you're about
to offer and mark it up with some meaning to it. A heading is a heading, a
paragraph is a paragraph, a list is a list and so on. Once you've done that,
style your pages with CSS using a (external) stylesheet.
Barbara, Niek is talking about mailings, not sites ;-)


Ah, with his use of html message I couldn't read the font very well,


Get Dialog. I see HTML messages in plain text - didn't even notice he
used HTML :-)
misread that bid. In that case a stylesheet in the head of the
template should be a good option.
If that would work, but CSS styles in HTML mail aren't as reliable as
you would expect. I've tried it once, and some very basic styles just
didn't work.
The very best option would be not to use html for any kind of e-mail of course,
Yup, agreed :-)
but that is probably only achievable in that perfect world I live in.


If you see HTML postings as HTML postings, your world is less perfect
than mine! :P

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Aug 10 '05 #9
On Wed, 10 Aug 2005 10:24:16 +0200, Els <el*********@ti scali.nl> wrote:
Barbara de Zoete wrote:


[ styling mailings ]
In that case a stylesheet in the head of the template should be a good option.


If that would work, but CSS styles in HTML mail aren't as reliable as
you would expect. I've tried it once, and some very basic styles just
didn't work.


Hmm, too bad :-D
The very best option would be not to use html for any kind of e-mail of
course,


Yup, agreed :-)
but that is probably only achievable in that perfect world I live in.


If you see HTML postings as HTML postings, your world is less perfect
than mine! :P


Nope. Because I see html postings as html postings, I get the option to either
tell or killfile the poster. Either way, it reduces data traffic for me, and
with that for the internet as a whole. Thus I keep (re)creating my perfect
world, whereas yours has come to a stand still. Yours will get outdated some
time. Mine will be perfect for all the time future holds. :-D

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'

Aug 10 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2004
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages to get the users colours, I have an includes file at the top of each page: <!--#include file="userconfig.asp" --> This is:
3
5489
by: macgyver | last post by:
This is a strange question, and I think the answer is NO, but I am asking anyway. I am a member of a website which allows us to alter our member profiles. Using css in the middle of the profile area allows one to overide the normal formatting of the entire page and truly customize it. But there is a span-style tag which gives an ugly blue background to certain text which I want to get rid of. This is the tag: <span...
2
1486
by: rholigrocki | last post by:
Dreamweaver css questino: I have a style sheet in the templates folder. That is linked to my pages. When I update the template, each page changes, but for half of them the style sheet does not get updated and I have to reattach it to each page, which works ok until I change the template! I am doing something very wrong. Any help would be appreciated! Rick
3
1781
by: Chris | last post by:
Hi I have another style sheet question: We effectively have a page that has two text boxes on it. We would like one text box to be in one style and the other text box to be in another style. The problem is we would like the user to be able to control the styles using style sheets. Is there anyway around this without hard coding the styles into the page?
8
41504
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{ whatever } </style>
10
2673
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ... ..menuItemStyle{ background:#ddeeff;border-width:1px;border-style:inset;font-family:Arial;font-size:11px
1
1657
by: Looch | last post by:
Hi All, I have a need for a user to open an XML file from a web site and have it open based on a style sheet, not just looking at the raw XML data. I'm wondering what the best way to go about this is... Do I download the style sheet to every PC that navigates to the web site in question? Would this use ActiveX?
7
1640
Stang02GT
by: Stang02GT | last post by:
I am running into a problem with a style sheet for my menu and the style sheet on my web page. The style sheet for the web page is over riding some of the items of my menu sheet. Is there any way i can stop this and exclude my menu from being styled by the web page sheet?
4
2396
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. The problem I am running into is that the tab style sheet uses attributes in the html and body and so does the content style sheet. Each one is specific to its content. The tab style sheet seems to take precedence over the content style sheet because...
0
7962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6681
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3880
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.