let me hear your voice tonight (
alexseanchai) wrote2016-10-12 03:36 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
(no subject)
O All-Knowing Dreamwidth: So how does one go about using HTML/CSS to justify text inside <ul> or <ol> tags?
I ask because I'm messing with a proofreading project and I'm working in raw HTML/CSS and hoping internet tutorials give me anything I don't already know but need to, and I've got the <p> tags defined as text-align:justify, but I can't figure out how to make that apply to my list tags. The list items are all showing left-aligned in both Firefox and Microsoft Word, which, since I got everything else justified or centered where I want it, hurts my eyes.
(I downloaded Microsoft Office 365—via the Oregon State University portal; this makes it free to me for either a year or till I graduate, I'm not sure—just to see how this project works when I open the html file in a properly functioning word processor. Dear LibreOffice team: I HOPE YOU'RE HAPPY.)
(LibreOffice doesn't play nice with html files, apparently; it just shows me the raw HTML, which I see just as well and indeed better in jEdit. I am delighted to note that Word knows what to do with the <ul> and <ol> tags better than Firefox apparently does.)
ETA: I figured out how to CSS the <li> tags and we are all better!
I ask because I'm messing with a proofreading project and I'm working in raw HTML/CSS and hoping internet tutorials give me anything I don't already know but need to, and I've got the <p> tags defined as text-align:justify, but I can't figure out how to make that apply to my list tags. The list items are all showing left-aligned in both Firefox and Microsoft Word, which, since I got everything else justified or centered where I want it, hurts my eyes.
(I downloaded Microsoft Office 365—via the Oregon State University portal; this makes it free to me for either a year or till I graduate, I'm not sure—just to see how this project works when I open the html file in a properly functioning word processor. Dear LibreOffice team: I HOPE YOU'RE HAPPY.)
(LibreOffice doesn't play nice with html files, apparently; it just shows me the raw HTML, which I see just as well and indeed better in jEdit. I am delighted to note that Word knows what to do with the <ul> and <ol> tags better than Firefox apparently does.)
ETA: I figured out how to CSS the <li> tags and we are all better!
no subject
...you're speaking Greek :p
(This is what I get for learning this all piecemeal instead of systematically, isn't it?)
no subject
Basically, CSS lets you target specific relationships between tags, so that you can style the same element, like li, differently based on whether it's a list element of an ol or a ul. Depending on what you're creating, I'm wondering if the word processor program needs more specificity in the stylesheet to do what you want it to do.
no subject
Nod :)
Idk? It's not, as of the last thing I tried before leaving for work, working in either Firefox or MS Word. Regular paragraph justification is. The thing telophase suggests looks like it should work? Idk though. Figure it out Not At Work, right?