?

Log in

No account? Create an account
Charlie's Strange and Happy World
...one page at a time
CSS? I've Still Got It (at Least a Little!). 
May 18, 2016 (Wednesday) 02:27 pm [2016, blog, coding, css, customization, customizing, html, livejournal, may-2016, textarea]
love to code
Some time back (I'm not sure when), my customized theme at LiveJournal stopped displaying correctly. For whatever reason, the text would just run off the edge of the text area of my blog. I doubt most of you have ever viewed my blog the way I do, but I use 'Mochachino' that uses the Smooth Sailing theme. I've added my own background image of books (in brown) -- which is not an especially lovely image, but I've had it for so long that I'm sentimentally attached to it (it's what I like to see when I go to my blog).

So for all this time (again, I don't recall how long -- but months and months, at the very least) I've just lived with it. But today I was messing around with CSS for work, and suddenly decided to see if I could add CSS here at LJ and fix the problem. And guess what? It worked!

I've loved CSS (which stands for Cascading Style Sheets) ever since I first learned how to use it (years and years ago). When I first learned HTML (which stands for Hypertext Markup Language) I learned it WITHOUT CSS -- but now they teach both together (as they should!).

Anyway, using CSS basically is how you determine the way HTML elements will be displayed on screen, (paper or other media). CSS saves a TON of work. Style sheets can control layout for multiple web pages all at the same time. Or you can use more than one style sheet for different purposes (I used to have different style sheets for various menus at our old festival website, for example).

In this case, I needed to add what's called padding to the main area of my blog (so text wouldn't overlap the right edge). The code looks like this:


(Total aside. Isn't that little 'textarea' box awesome? It lets me display HTML/CSS without having to code everything! I love it.)

Yeah, yeah. That's meaningless to anyone not interested in CSS. But if you do use CSS, you'll totally get what was going on here. (smile)

Anyway, I haven't tweaked my LJ blog in some time, so this made me so very happy!!!
Comments 
May 19, 2016 (Thursday) 12:50 am (UTC)
My last programing class was in 1982, so didn't include much web stuff....

But, I'm glad it is doing what you want it to do!