* {CSS Help} The Structure of a Blog Entry

Unplugged's picture


Adopt one today! Adopt one today! Adopt one today! Adopt one today!

Colours for visualizing, not my fault if you go blind. :B

(may 23, reworked link section. USE BBCODE INSTEAD OF FILTERED HTML )



Remember to put your CSS under the cut!

Set your Input Format to BBCode!

Write all CSS in one line!



You don't need to credit me for anything.


CSS Templates


The easiest way yo use these templates is to change #ffffff hex colours and replace background images.
Experiment with the colours to see what is what.

ONE

simplest and easiest to edit; lacking refinement

TWO

simple, easy to edit; slight transparency effects

THREE

refined, transparency effects, right-aligned sidebar; code for 'normal' sidebar in comments (page 2)

FOUR

3 Versions. refined, heavy page altering, lots of transparency



This Blog


This blog is only useful to you when you have any pre-knowledge of CSS!
Otherwise you will not gain much from it. This blog shows the "names" of different parts through different colours.

If you want to understand CSS, check out * {CSS Basics} How Do I CSS?

BLOG CODE


Colours for Sidebar Links






MAKING A CUT (Terabetha)

BASIC CSS

TAB-LAYOUTS

ORGANIZE YOUR CSS (Ikaron)

Art, Design, Coding Links

Explaining Divs (shamiya)

Div Layouts (shamiya)

Zebbie's CSS Help - Fun With Coding

Iaurdagnire's about:blank








OUTSIDE (RED & PINK)

body
(includes: #logo #header #header-region #center .sidebar .menu .item-list
anything pink and red here)

#logo

#header

#header-region
(includes: .menu)

#center
(includes .sidebar .menu .item-list)

.sidebar
(includes: .menu .item-list)

.menu

.item-list


INSIDE (BLUE)

#wrapper #container #center .right-corner .left-corner
(includes: .breadcrumb .node .submitted(blog only) #tabs-wrapper .picture .links
anything blue)

.breadcrumb

.node

.submitted
(in comments and blog)

#tabs-wrapper

.picture

.links

COMMENTS (GREEN)

#comments
(includes: .comment.odd, tr.odd tr.even, .comment.even)
(only visible when you have "background:none" on .comment.odd, tr.odd and tr.even, .comment.even )

.comment.odd, tr.odd
(darker comments)

tr.even, .comment.even
(lighter comments)

.new
(the "New" that appears by a new comment)

.comment div.links
("edit" and "reply" buttons, although I am not sure if it affects all links in comments)





CSS rule set
I am not a professional, so I can't guarantee accuracy. My english is not perfect either, but I hope this will help you understand CSS a little bit better.

Selectutorial
Very helpful site if you want to understand CSS better. I highly recommend looking through it sometime.


Build of a basic CSS code:


The start tag and the end tag define where your CSS code starts and where it ends.
The Selector "selects" the element of the page that is affected by the rule set. If you want to define more than one Selector at once, you can seperate them with a comma.
  example
      body, .sidebar {color:#ffff00}
The Declaration Block is the container for Declarations. It stands between curly brackets.
The Declarations tell the browser how to draw the selected element.
(Not pictured: A Declaration splits up into Property and Value. The Property is the aspect that you chose to style (like font, background), while the Value is the exact style for this Property (like font style, background color).)



Link colours
To change the colour of links in different parts, you have to add an "a" at the end of your Selector.
  example
      body a {color:#ff00ff}
If you want to change the link-color when you hover your mouse over it, you additionally have to add :hover, which is a so-called Pseudo-Class
  example
      body a:hover {color:#00ffff}
You can apply these Pseudo-Classes not only to links, but pretty much any Selector.

Read more about it here!




If you have any problems, questions, ideas or find any mistakes here, please let me know!
Enjoy. ♥



Unplugged's picture

Possibility #1 is to set the

Possibility #1 is to set the comment width from 600px to 800px.
Or this one, but you will have to sacrifice user pictures:
#comments{margin:auto} .comment{padding:0px} .comment .content{margin-left:0px} .comment .picture{display:none}
goodvibration's picture

Ah, without the user pictures

Ah, without the user pictures it works.

Thank you so much again! Eye
Spirituelle's picture

Hello, I'm actually using

Hello, I'm actually using your coding, but I was just wondering what code to shove in to center the grey "main body" on this? O: I hate to be such a bother, but help would be loved. <3
Unplugged's picture

Spirituelle, try this

Spirituelle, try this one:
#wrapper #container #center .right-corner .left-corner{position:relative;margin:auto}#wrapper #container #center{float:none;}body.sidebar-left #center, body.sidebar-left #squeeze{margin-left:0px}

Hi Unplugged It's about

Hi Unplugged

It's about this.
Somehow, some of the text in the boxs are centered, others are not: For example tab #10, 1st box, and tab #4, 1st box - 4 is centered, 10 is not.

Can you please tell me why this stuff happens? D':



Unplugged's picture

Hmmm. Could you give me your

Hmmm. Could you give me your code please?
http://textuploader.com/

Sure. Thanks.

Sure.

Thanks.



Unplugged's picture

Ah.. that's a side-effect of

Ah.. that's a side-effect of the hidden scrollbar trick :x In #4 you have enough text to scroll, so it's centered because the scrollbar takes up the space. In #10 you don't have that scrollbar.
You can change the "width:320px" to "width:309px" if you want the text centered.

Ooh. I see! Thanks Edit:

Ooh. I see! Thanks Sticking out tongue

Edit: Wait, where do I resize? Um... I can't find the width of 320px o.o'



Unplugged's picture

whoops. it's width:230px,

whoops. it's width:230px, change to 209px. sorry. :x

Thanks! No need to apologize

Laughing out loud Thanks!

No need to apologize xD



Spirituelle's picture

Yes! That worked. Thank you!

Yes! That worked. Thank you! ♥
Skatmat's picture

Hello! (: I have a question

Hello! (: I have a question regarding this code on my bio here; http://endlessforest.org/community/node/65765

Is there a way to hide the date and my username in the blog (.submitted, .submitted a?), but let it show in the comments? Also, I want to get rid of that space for the display pictures, and disable signatures?
Unplugged's picture

Aye! .node .submitted, .node

Aye!
.node .submitted, .node .submitted a{display:none}
.comment .content{margin:0}
.comment .content .clear-block{display:none}
Skatmat's picture

Thanks! But now it appeared a

Thanks! But now it appeared a turquoise line above the comment section, how do I get rid of that? o:
Unplugged's picture

.node{border-bottom:none}

.node{border-bottom:none} Smiling
Skatmat's picture

Thanks, you're awesome:D

Thanks, you're awesome:D

How do I change the size of

How do I change the size of the "reads" portion at the bottom of a blog?
Laiia's picture

Do you know, by hazard, how

Do you know, by hazard, how to change the comments box color... ? I mean, when you're adding a new comment, when you're editing a comment, or when you're posting a new thread... The box in that I'm writting in.

Thank you !~

Avatar & signature by Shimmyshimmy. ♥
Unplugged's picture

BetweenTheBars- I'm not sure

BetweenTheBars- I'm not sure if that's what you're looking for, but ".comment div.links{width:250px}"
Laiia- textarea{background:#ffffff} Smiling

http://endlessforest.org/comm

http://endlessforest.org/community/node/64872

^ I'm having small troubles - I think. The boxes on the right and left aren't on the same wavelength (so to say O.o')... How do I fix? :'x



Laiia's picture

Thank you very, very much

Thank you very, very much <3

Avatar & signature by Shimmyshimmy. ♥

Quote:The .node background is

Quote:
The .node background is invisible. There's only 1 background.


Quote:
Lung, for the first one, adding another empty line after the "Mentally"-select worked for me.
For the second question, EternalQueen has the answer. You add the background to the body, and remove use background:none for .node and #wrapper...
body{background:url('url')}.node{background:none}#wrapper #container #center .right-corner .left-corner{background:none}


I still don't understand this at all. I still get the overlap. :/

Here and here are what my codes look like where the background is.
Unplugged's picture

#wrapper #container #center

#wrapper #container #center .right-corner .left-corner{background:url('http://img836.imageshack.us/img836/8425/vintagepatternblack.gif')}
^ Remove this line.

Eternalqueen, make sure you have the same amount of lines in each box. could I have your code please?
http://textuploader.com


I may be a bit slower with responses for the rest of october. Compulsive procrastination and work is piling up and it's my fault.

Eh. I give up. I did get rid

Eh. I give up. I did get rid of that line, but now the main blog body is the original brown. :/

Thank you so much for getting back to me though. <3

Sure.

Sure. Smiling



Unplugged's picture

oh damn sorry, I forgot. This

oh damn sorry, I forgot. This one, use this one instead..
#wrapper #container #center .right-corner .left-corner{background:none}

[e]: EQ-- http://textuploader.com/?p=6&id=JNi8J Smiling
I don't know why it was doing that though. I just replaced the Ormandur td with the Misho td and changed the colours.

! It worked! Uuugh, thank

!

It worked! Uuugh, thank you sooo much again. /smothers/ <3

o.o' Weird. Thanks a lot,

o.o' Weird. Thanks a lot, though C:

Edit: Eh. This stupid blog just keeps making problems - when you open tab #1, then tab #2, there's a height difference... I can't figure out how this happens.



(Edit 3) Actually I have a

(Edit 3)

Actually I have a new problem. On this, part of the 'comment.even' part is turning out black on the bottom signature part, and I don't know how to not make it do that. ;-; Help? ♥
Unplugged's picture

Wetterhound, remove this

Wetterhound, remove this line: ".content .clear-block{background:#000000}"

EQ, the blog is leading me somewhere else. :x

Lol. My bad: This should be

Lol. My bad: This should be the right one.


But it doesn't matter anymore - sorry. I removed their background, but before, there was a height difference.



I'm sorry, since I know it's

I'm sorry, since I know it's been asked already: How do I disable signatures?

>xK I've been looking for it and already went through 6 pages, couldn't find it.



Unplugged's picture

For disabling signature:

For disabling signature: .comment .content .clear-block{display:none}
I'm not sure on the other one. :s sorry. Try playing with your heights maybe.

Aah thanks (is EQ) Ff nvm I

Aah thanks (is EQ)

Smiling Ff nvm I just remove the background, no one will notice...
>.>'
<.<'
Corell's picture

Heey! How do I center the

Heey!

How do I center the boxes and comments? Here: http://endlessforest.org/community/css-2-ignore-plx
And where should I put the code?

Thank you =D <3

Um. I was wondering, the bit

Um. I was wondering, the bit were it says "???'s blog" "Add New Comment" and how many reads a blog has - what part of the code do I change to center it?
parrotsnpineapple's picture

MIGHTY UNPLUGGED. I BESEECH

MIGHTY UNPLUGGED. I BESEECH THEE

http://endlessforest.org/community/node/37916

How do I remove comments entirely? Just having the blog cut off under the little box there? I managed to do it by accident once through tabs, but I cant seem to repeat my silly mistake...XD
Unplugged's picture

Corell, I'm not sure if

Corell, I'm not sure if that's what you mean but try this? "#wrapper #container #center .right-corner .left-corner{position:relative;margin:auto}"

bluejay, ".node .links, .comment .links{text-align:center}" Smiling

Hah, Ravenflight. Sticking out tongue
"#comments{display:none}" it is.
parrotsnpineapple's picture

Thankyou so so much

Thankyou so so much <3
Is it possible that one can hide the "add new comment _____'s blog, all those links at the bottom?
Unplugged's picture

Aye! ".node

Aye! ".node .links{display:none}"
Corell's picture

It worked, but only on the

It worked, but only on the comments (:
It looks like this now: http://endlessforest.org/community/node/66138/edit

Hello One can

Hello
One can question?
That's what the code is on frame, on the similarity of this?: http://www.endlessforest.org/community/dancing-edge-c-u-t-l-s-s-blade
How to insert into the frame background?
hoity-toity...)
Unplugged's picture

???????? ???? ??? <div

попробуй этот код Smiling

<div style="width:600px; height:130px; overflow:auto; background: #253128; border: 2px solid #264135; text-align:justify; padding:10px; font: 11px georgia; letter-spacing:1pt;"> Text </div>

тебе надо изменить "#253128" на твой код цвета. (если не знаеш как, код можешь наити тут: http://www.colorpicker.com/ )
dearjuno's picture

"Home › Blog › ect." Sorry

"Home › Blog › ect."

Sorry if this is been asked, but how do you center that and change the colors for the ›'s

Thank you~

Hey contact me if you need me,

'll try to be active again.

Thank you very much! You

Thank you very much!
You helped me a lot Eye

One can also question for?
How to make the background here in one blog?
hoity-toity*
Unplugged's picture

yqwndw--

yqwndw-- .breadcrumb{color:#000000 !important} should do the trick. Smiling

Adolf-- I think you mean this?
#wrapper #container #center .right-corner .left-corner{background:url('http://url.here/image.jpg')}

Argh Unplugged, sorry to

Argh Unplugged, sorry to bother you, but my brain can't handle this problem: Here.

Why is the text again to the right? D: I tried to remove it, buuut... It's persistent.

Also, how do I perfectly center the node...? As you can see here: http://endlessforest.org/community/testing-css-2

It's a tad more to the right.



AngelWings's picture

i have a question. What's

i have a question.

What's the code if i just want a background color? thats it...
-Tabby

http://www.endlessforest.org/

http://www.endlessforest.org/community/node/64099

Trying to figure out how to get the "Lung's Blog" "Add New Comment" etc, over back to where they originally were.

http://textuploader.com/?p=6&id=hXIuN

Here's the TextUploader if you need that.