Weird formatting behavior
In my Solaris 10 post, there was a weird formatting behavior which troubled me in last 24 hours. The “#” were not aligned in same column. For example, it looks like this:
- Create two files in /etc
# echo 195.168.24.1 > /etc/defaultrouter # echo nameserver DNS_ip_address_1 >> /etc/resolv.conf # echo nameserver DNS_ip_address_2 >> /etc/resolv.conf
I came across Brian’s website and found his <pre> and <code> tags look great and I followed and modified his css stylesheet for my use. There was no problem before I added these tags because I used <blockquote> tag for this purpose. I could not solve the problem and I emailed Brian. After a couple of emails, I was still unable to solve the problem. In his last email, he said:
…I suspect it has something to do with the css code. Try commenting out the white-space and word-wrap commands from your pre tag style and see what happens…
The idea rang in my head and I did some experiments and found the culprit was the <ol> tag. It contains “text-indent:-5px;”. I edited the <ol> tag in the html of Solaris 10 post and the problem is resolved:
<ol style="text-indent:0px;">
Thanks Brian, if you are reading this.
Comments
One Response to “Weird formatting behavior”
Leave a Reply


Listen to my podcast
Alternatively, I can take out the line with “text-indent:-5px;” from the ol tag style. But I want to preserve it for some originality which I have no idea at all (I do not know what will be affected if I take this out). So I keep it and override it explicitly.