Here is my web site:
I am trying to wrap the titles of my blog/article posts…
Lovemaking positions or the art
Indianapolis road rage on I 465
Dr. David Olson-Prepare Enrich-mp3
Answers to, “Are you the right one?”
etc, (see under “Blog/Articles” on my right sidebar)
…so that they do not push the sidebar to the left and into the main body text. When they are too long they will push the sidebar left and bleed into the main text area.
I am trying to wrap the titles so that it would look like this:
or the art
Indianapolis road rage
on I 465
Could you please suggest some code AND where it might go in the sidebar, or the style.css, or wherever.
Could it be a problem of a non-breaking space? See the following thread:
I can’t even find my sidebar code. I have looked in the style.css, etc.
How about this small section in my sidebar.php code, would this code prevent wrapping? My last post title is really long:
// I love WordPress so
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- “><?php the_title() ?>
<?php endwhile; endif; ?>
Yeah, you *may* want to start with fixing your 214 validation errors. That’s *always* the first place you want to start with this.
I’m also assuming you’re viewing in IE (probably 6?) because I don’t see what you’re talking about at all – I use Firefox. but this sounds like an “IE6” thing – to which, again, validating your site would be *really* beneficial, because if there’s even one error, IE will be thrown into “quirks mode” and that’s a whole new can of worms.
A lot of your errors are pretty simple: you’re using XHTML 1.0 Transitional as your doctype – so even doing something as simple as changing your doctype to HTML (rather than XHTML) might fix many of these issues. (In fact, if you switch it to HTML 4.0 Transitional, your errors will shoot down to a more-manageable 40 – but again, most of the errors are simple formatting issues)
You can read up on the differences at w3schools – there’s not a lot, but they do matter.
Once the page validates, you may not have this issue anymore, but if you do, post back and then we can take a look to see what’s up.
Thanks for the reply.
I use Firefox and the main page looks the same in that and IE.
1. My question is about the titles of my blog/article posts in the sidebar. The following title is way to long, compared to the others…
10 reasons to not take a premarital compatibility test
I would like it to look like this in the sidebar:
10 reasons to not take a
premarital compatibility test
2. How do I switch to HTML from XHTML? I see, in the w3schools link, that XHTML requires precise code.
- The topic ‘How do I wrap text in my sidebar?’ is closed to new replies.