HTML Coding - Misc. Questions

by rbowen
2 replies
  • WEB DESIGN
  • |
Hi!

I'm wondering if anyone can offer solutions to a couple of problems my limited, dated HTML coding knowledge is creating for me.

1) I have a list of numbered line-entries that I'd like to left-justify and then place that list underneath a video-box that I have centered in the middle of a page on my blog, with the left-justified edge of the list lined up directly under the left edge of the video-box (and letting the right-most edge of the list end wherever it ends) ... so that it might look something like this:


************************************
| |
| |
| Video Box |
| |
| |
| |
************************************

1.) First line-entry blah-blah-blah
2.) Second line-entry is, of course, right below the first
3.) And the third one is here
4.) Etc.

I used to use a string of those special "non-breaking space" characters ... &nbspc ... ahead of the text that I want to move over from the left edge toward the center of the page. But I read that they are no longer recommended.

So I found an alternative ... * ... and tried that. The problem I ran into was all of a sudden, the special characters (*) would be gone .. just disappeared ... I didn't remove them! ... and the carefully positioned list of numbered lines is no longer in the middle of the page (like above) but instead on the left edge of the page. I'd put them back in,and they'd disappear again .. maybe the next day, maybe not for a week or two. Strange.

Anyway, is the best way to get the entries within list left-justified, while lining the whole list up on the left edge of a box centered on the page?



2.) I'd also like to make, say, the 3rd line (above) the color red .. without causing a blank line to be inserted above it (right after the 2nd line).

I know how to make a line of text a color, using the code for 'style' within a paragraph, like ..... <p style="color: #008000; etc. .....

The only problem when I use that code is that it causes a "paragraph break" (or whatever it's called) right after the 2nd line, as it creates a paragraph to accommodate the 3rd line.

I remember using Font in the old days, like ... <font color="#3366FF"> .. before the word or sentence I canted a given color, followed by </font>, of course. And that would color the line of text, while leaving the (non-)spacing as is. But I read somewhere recently that HTML coding standards now discourage (or disallow?) the use of the Font. Is that right?

What's the best way to do this?


Thanks, in advance, for your help.

Richard
#coding #html #misc #questions

Trending Topics