April 19th, 2013, 01:41 PM
Wrapping text in a fixed position element
I have a left side navigation element (fixed position so it's always visible), and a title that does not fit inside of it. I would like the title text to wrap to the next line so it fits, but it's not happening. Below is the CSS & html codes:
I tried applying the same width to the h2 element inside the navigation id but it still overflows, same with adding an overflow property (none of the options keep it in)
<div id="left_nav" class="navigation">
<h2>Table of Contents</h2>
<li><a href="#paper">Term Paper info</a></li>
<li><a href="#personal">Personal Info</a></li>
<li><a href="#five">5 more things</a></li>
April 19th, 2013, 05:16 PM
It seems to work like you say. Which browser are you using? IE7?
April 19th, 2013, 06:35 PM
I was using it in Chrome at work... just tried it at home in Chrome and it works (same with other Firefox here, didn't try that before). No idea why it wasn't working at work, but it's all good now!
Originally Posted by brandan
April 20th, 2013, 04:42 PM
April 22nd, 2013, 09:56 AM
Back at work and tried again, still not working in Chrome, or IE (didn't check IE Friday), does work in FF though. Don't think a reinstall of Chrome will matter if it does it in IE too.
Not sure why it works at home in all 3 but at work in only 2/3, but I'm not going to worry about it for now since it works at home, hopefully it works for my professor when I turn in my hw too!
April 22nd, 2013, 12:00 PM
No sure what I did to fix it, but it's all working now!