On Mar 16, 2018, at 9:53, Nori Muster <norim...@gmail.com> wrote:I know how to set a typeface using <font face=“helvetica”> </font>But is there a way to change the whole document at the same time, like to put helvetica in the <body> line?
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to a topic in the Google Groups "BBEdit Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bbedit/3jt3x6QXuJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bbedit+unsubscribe@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
<style>
body{
font-family: Helvetica, sans-serif;
}
</style>
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.
<style>
body{
font-family: Helvetica, sans-serif;
background-color: #FFFFFF;
color: #000000;
}
a:visited{
color: #FF0000;
}
a:link{
color: #0000FF;
}
a:active{
color: #000088;
}
</style>
</HEAD>
<body>
<p>Some sample text</p>
</body>
</html>
--------------
Differences to note:
1. Since you have defined the format of BODY in the <STYLE> section, you don't have to specify it in the BODY tag itself. In fact: Don't.
2. The ALINK and VLINK tags are officially not supported in the latest version of HTML (HTML 5). Instead, you should define the various states of a link (i.e., the <A> tag) with a colon and then the keywords as shown (I think).
3. The <STYLE> ... </STYLE> tags should be nested within the <HEAD> tag, which means both <STYLE> tags come *before* the closing of the HEAD tag (</HEAD>).
4. I added a standard document type declaration as the first line.
Note that I'm no expert in CSS, and undoubtedly more knowledgeable people on this list are going to want to correct and polish this. Also, I've never posted anything without making at least one embarrassing mistake.
Good luck.
David
To unsubscribe from this group and all its topics, send an email to bbedit+unsubscribe@googlegroups.com.
On Mar 16, 2018, at 23:37, Nori Muster <norim...@gmail.com> wrote:Thanks David - this may be a good alternative to learning CSS like everyone else recommended, but maybe it's about time I learn CSS anyway.
Oh computers - why do you challenge me all the time?Thank you for the code, Ill try it. Does <style> go up there above or below <body>? I'm guessing just below <body>.
Nori
On Friday, March 16, 2018 at 7:20:20 AM UTC-7, DavidWeinberger wrote:To save a click:To put style info into the HTML doc itself, in the <head> section you'd add something like this:<style>body{font-family: Helvetica, sans-serif;}</style>(The san-serif provides an alternative for browsers that don't have the Helvetica font installed, which will be approximately 0% of browsers, I believe.)David W.
On Thursday, March 15, 2018 at 9:43:55 PM UTC-4, Jean-Christophe Helary wrote:On Mar 16, 2018, at 9:53, Nori Muster <norim...@gmail.com> wrote:I know how to set a typeface using <font face=“helvetica”> </font>But is there a way to change the whole document at the same time, like to put helvetica in the <body> line?Yes, it is a technology that's called CSS (cascading style sheets) and it's been around for a very long time.You may want to check the W3schools tutorials to get up to speed:Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"sup...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To post to this group, send email to bbe...@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To unsubscribe from this group and all its topics, send an email to bbedit+un...@googlegroups.com.