testing ([info]carriep63t2) wrote,
@ 2003-09-02 16:04:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
The style tag.
The style tags are used to tell your browser which computer language you are using. That would be CSS in this case. CSS uses the brace symbols {} instead of the angle brackets <,> that HTML uses.

•"Regular" HTML NEVER goes inside of your style tags!! The whole purpose of the style tag is to tell the browswer you are using CSS. That means ONLY CSS can go in these style tags!

• You only need ONE SET of style tags and arrows. Do not use multiple style tags or multiple arrows or your journal will not display properly.

The style tags look like this:

<style type="text/css"> opening tag
<!--opening arrow

All of your overrides go here

-->closing arrow
</style> closing tag


and usually go inside your GLOBAL_HEAD tags. You only need ONE set of style tags and arrows for ALL of your overrides! Most of the overrides you use for your journal are going to go between your first (opening) style tag and your last (closing) style tag. There are exceptions to this rule, but not many. There is an easy way to remember what GLOBAL_HEAD overrides go inside the style tags and which ones go outside the style tags. The overrides that go inside (which is most of them) will use these braces { }. For example, a background override:

GLOBAL_HEAD<=
<style type="text/css">
<!--
body {
background-image: url(http://www.your-website.com/image.jpg) !important;
}

-->
</style>
<=GLOBAL_HEAD


If you have more than one override (which most people do!) then put them all together between the two style tags. Here is an example of a background and resizing the entry box:

GLOBAL_HEAD<=
<style type="text/css">
<!--
body {
background-image: url(http://www.your-website.com/image.jpg) !important;
}

table{
width:50%;
margin-left:40%;
margin-right:40%;
}
table table{
width:100%;
margin:0;
}
table table table{
width: auto;
}

-->
</style>
<=GLOBAL_HEAD



The exceptions
There are a few codes that will not go inside of the style tags. These are easy to tell because they use "regular" html with angled brackets. <like this>. If you have one of these overrides, you still put them in the HEAD, but leave them outside of the style tags.

Here is an example of the title override combined with the background and entry resize:


GLOBAL_HEAD<=
<title>title you want here</title>
<style type="text/css">
<!--

body {
background-image: url(http://www.your-website.com/image.jpg) !important;
}

table{
width:50%;
margin-left:40%;
margin-right:40%;
}
table table{
width:100%;
margin:0;
}
table table table{
width: auto;
}
-->
</style>
<=GLOBAL_HEAD


See how the angled brackets are placed outside of the style tag? Also notice that there is only one set of style tags and arrows even though I have more than one override? Extra style tags, arrows, and improperly merged overrides will make your journal display incorrectly.


On to the other overrides!



(14 comments) - (Post a new comment)

hmm..? im confused..
[info]1_h3art_y0u
2005-01-13 01:09 am UTC (link)
i have a question about links. lets say i want my links to move and be glittery like what user _xn0tperfectx_ has. how could i do that? IM me at dancestar593 for more info =)

(Reply to this)


[info]xmissxkittenx
2005-05-30 01:37 pm UTC (link)
i'm not even sure where to paste all this. I want to change my comment text.I'm in customize but it won't even let my click the override for link text to comments.

(Reply to this)


[info]holycrap101
2005-06-14 11:18 pm UTC (link)
OMG thank you so much

(Reply to this)


[info]kleurpotlood
2005-12-10 10:56 pm UTC (link)
Hi, where do I have to enter all this?

(Reply to this)


(Anonymous)
2006-01-24 07:32 pm UTC (link)
*heart* *heart* *heart* *heart*
thank you sooooooooo much!
I have favorited the page before this.
Thank you so so so so so so so much!

(Reply to this)


[info]xo_testing_ox
2006-02-11 01:13 pm UTC (link)
soooooo...do cursors still need "their own" style tag? or are those part of the "new problem"? thanks for the help!

(Reply to this) (Thread)


[info]xo_testing_ox
2006-02-11 01:15 pm UTC (link)
nevermind, i answered my own question....thanks anyways for the post!

(Reply to this) (Parent)


[info]carriep63t2
2006-02-11 03:55 pm UTC (link)
cursors do not need their own style tag. They go into the GLOBAL_HEAD. There is not a problem unless the codes are merged incorrectly.

(Reply to this) (Parent)(Thread)


[info]xo_testing_ox
2006-02-11 04:19 pm UTC (link)
yep, i figured that out, but thanks! :D

(Reply to this) (Parent)


[info]fishnumber641
2006-02-19 04:03 pm UTC (link)
it fixed my layout, thank you so much. :)

(Reply to this)


[info]redr0se
2006-03-15 12:57 am UTC (link)
This is amazingly clear and helpful, I don't feel as retarded anymore. ^..^ I can't wait to learn more!

(Reply to this)


[info]xxbakuraxx
2007-08-24 09:58 pm UTC (link)
Sorry to bug you; I was looking at a layout by hales731. Does it matter what order the codes are in? And what does this code mean? :

.ss, .p {
display: none;
}
-->



(Reply to this)

CONFUSED
[info]dropdeadkrysta
2008-06-27 11:02 pm UTC (link)
where do i paste all of this?
ive pasted into the custom css, but it never shows up on my journal

(Reply to this) (Thread)

Re: CONFUSED
[info]carriep63t2
2008-06-28 12:51 am UTC (link)
Don't paste any of this anywhere. This is an S1 tutorial explaining the difference between CSS and HTML.

(Reply to this) (Parent)


(14 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…