Aligning text in lists - Post ID 107406

User 2000538 Photo


Registered User
1,392 posts

Eric English wrote:
Unless I'm missing the point could you not just add a couple spaces for your second line (in the html)?


I'm not sure how that would work for visitors with different screen resolutions.

There must be a way to do it cleanly?
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 562592 Photo


Registered User
2,038 posts

Yes, you are correct. I differentiate for screen types by attaching separate style sheets. This of course still does not answer your question. My favorite is using the span tag. At the point where your text changes line set a span tag and indent. Tada! :D
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com

User 2000538 Photo


Registered User
1,392 posts

Eric English wrote:
Yes, you are correct. I differentiate for screen types by attaching separate style sheets. This of course still does not answer your question. My favorite is using the span tag. At the point where your text changes line set a span tag and indent. Tada! :D


I'm sorry Eric but I'm confused. Wouldn't that still leave the problem that it was forcing the text to break in a position that might not be appropriate for those with much lower screen resolutions?
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 38401 Photo


Senior Advisor
10,951 posts

hmm I didn't have to add any spaces or anything for mine, but my CSS file also doesn't have any specific settings for UL / LI other than my footer, and yours has a bunch of them. The very first part of your CSS file tells it to give UL & LI no margins, dunno if that's what it is but try taking those 2 out of that list and see if that fixes it? If not then just hit back and put them back in.

There are quite a number of list settings in your CSS that could be hindering the indents, but your CSS is quite involved and I haven't a clue which ones to tell you to check or change. Trial and error is how I usually find something, and if I can't then I'm usually back here asking again LOL.

All I can say is I "think" it's in your CSS file that the problem is stemming, but I'm not 100% sure on it.
User 2000538 Photo


Registered User
1,392 posts

Jo Ann wrote:
hmm I didn't have to add any spaces or anything for mine, but my CSS file also doesn't have any specific settings for UL / LI other than my footer, and yours has a bunch of them. The very first part of your CSS file tells it to give UL & LI no margins, dunno if that's what it is but try taking those 2 out of that list and see if that fixes it? If not then just hit back and put them back in.

There are quite a number of list settings in your CSS that could be hindering the indents, but your CSS is quite involved and I haven't a clue which ones to tell you to check or change. Trial and error is how I usually find something, and if I can't then I'm usually back here asking again LOL.

All I can say is I "think" it's in your CSS file that the problem is stemming, but I'm not 100% sure on it.


Yes I know its the CSS :) and one or more of those settings is over riding the normal way for it to line up nicely. Its probably ever so simple but its escaping me at the moment.
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 562592 Photo


Registered User
2,038 posts

Oh yes, I see what you are saying now. I guess I am not sure regarding the screen resolution problem. I guess it all depends on how far of screen resolution you are concerned with. You could set the <li> tag to indent, but that causes the same problem (I think). You could use a <p span> tag for each line - then define each span line to indent. I think for it to work properly you would also have to define the width.

Not sure this helps. Guess, I am just thinking out loud.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com

User 544680 Photo


Registered User
171 posts

Change line 88 of your default.css file to the following:

#content ul li {
list-style:disc outside none;
margin-left:30px;
padding-right:10px;
}


Notice the list-style is changed to "outside" instead of "inside." Also, I added "margin-left: 30px;" to indent the list item a bit. Adjust settings to taste, bake for one hour, and let cool for 15 minutes :D
User 562592 Photo


Registered User
2,038 posts

Never seen that. :/
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.

My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).

My Personal Website: http://www.EricSEnglish.com

User 2000538 Photo


Registered User
1,392 posts

BookPublisher wrote:
Change line 88 of your default.css file to the following:

#content ul li {
list-style:disc outside none;
margin-left:30px;
padding-right:10px;
}


Notice the list-style is changed to "outside" instead of "inside." Also, I added "margin-left: 30px;" to indent the list item a bit. Adjust settings to taste, bake for one hour, and let cool for 15 minutes :D


Excellent! That did the trick. Thank you Book Publisher...so simple but it has evaded me for about 12 hours. Now I can keep going. :D

Grab the choccie before the others get it...
Attachments:
I know you believe you understand what you think I said...but I am not sure you realize that what you heard is not exactly what I meant.


User 544680 Photo


Registered User
171 posts

Your welcome. Chocolate Frog...excellent!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.