Viewing Headings
Headings
|
User: cecile 12 years ago
|
|
|
Hi, I created headings as Roddy explains in this page [url=http://roddymckay.com/EasyWeb/html-headings.html#external] It is working fine, I was just wondering about the code which is generate then, the styles I created (h1 and h2) are in a second <style type="text/css" Is it a problem to have two style sheet? Thanks, Cécile |
|
|
User: Roddy 12 years ago
|
|
|
Deleted!
Last edit 12 years ago ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: Roddy 12 years ago
|
|
|
Having two styles is not really a problem. It is only slightly less efficient than having one. When you insert CSS into the Head Code box you are creating what is called an Internal Style - as opposed to an external or inline style. A single internal stylesheet is a lot more efficient than using lots of inline styles. Inline styles are those that are incorporated into the actual HTML like this... <h1 style="font: 32px 'Verdana', Helvetica, sans-serif; margin: 0;padding:0; color: #FFF;text-align:center;">My Heading</h1> When I give examples of styles I tend to wrap them in <style type="text/css"></style> If I don't, some users paste the styles in without out the tags. This of course doesn't work and the style info appears on the page! On the other hand I see users adding styles piecemeal and end up with lots of style tags... <style type="text/css"> h1 {} </style> <style type="text/css"> h2 {} </style> More clued up users will place all the internal styles within one set of tags. Strictly speaking, under HTML5, it is not necessary to add "type=text/css" but it is better to do so for the sake of visitors who are using old, out of date browsers. Last edit 12 years ago ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: cecile 12 years ago
|
|
|
I thought internal style is when you insert CSS in the head box of your page, and the external when you insert them in the head box of the general settings. I insert the CSS for the headings in the general settings within a single <style type="text/css"></style> When I look in the code I have the CSS generated for the website within a first <style type="text/css"></style> and after my headings CSS within a second <style type="text/css"></style> How can place the CSS heading styles within the first <style type="text/css"></style> and have one single stylesheet? Cécile |
|
|
User: Roddy 12 years ago
|
|
|
Any styles inserted into the the Head Code box are internal. Styles entered into the one in Site Publishing Settings will appearing on every page of the site while those entered into the one in the page inspector will only apply to that page. External styles are on a separate stylesheet - usually in another folder. EW uses the ew_css folder or the user can put them in the ewExternalFiles folder. They are linked to like this in the HTML doc head... <link rel="stylesheet" type="text/css" href="folder-name/file-name.css"> The first <style type="text/css"></style> is created by the application so you must not put your own styles there. It wouldn't make any real difference to your sites performance even if you could. ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
|
User: cecile 12 years ago
|
|
|
So inserting these css style in the general settings head box is the right procedure ? I don't have to put them somewhere else ? And it will be OK for the different navigators ? Cécile |
|
|
User: Roddy 12 years ago
|
|
|
Yes, no and yes.
------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
| Post Reply |
| You must login or signup to post. |
