# I need a css detective...

**URL:** <https://boards.straightdope.com/t/i-need-a-css-detective/451172>\
**Category:** Miscellaneous and Personal Stuff I Must Share\
**Created:** [May 30, 2008, 5:52pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172 "2008-05-30T17:52:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [May 30, 2008, 5:52pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/1 "2008-05-30T17:52:44Z")

</div>

I am not the world’s leading expert on css, unfortunately. My homepage has a weird text size issue and I’m trying to figure out what’s doing it. What makes it hard is that my style sheet is really big and complicated and that the site is database driven and rendered with a bunch of nested templates. The first thing I need to do is figure out what css stuff is affecting the text in question, then I need to hunt down where and in which template it’s being assigned and fix it. I figured it couldn’t hurt to see if any dopers were good with css and bored enough to help me look at it.

Anyway, the style sheet is here: [http://opalcat.com/textpattern/css.php?s=default](http://opalcat.com/textpattern/css.php?s=default) and the problem is on my front page here: [http://opalcat.com/](http://opalcat.com/)

The stuff on the left under “Most Recently Added Content” is in a slightly smaller font than the stuff on the right under “Most Recent Journal Entries”. I suspect it’s due to my css using relative sizes rather than fixed sizes, and the left is inheriting an additional level of shrinkage that the right isn’t, but I haven’t been able to spot it yet.

Anybody willing to give it a shot? Massive huge thanks to anyone who is willing to help. 🙂

---

<div class="post-metadata">

**Author:** ![DMark](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@DMark](https://boards.straightdope.com/u/DMark)\
**Post date:** [May 30, 2008, 6:46pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/2 "2008-05-30T18:46:32Z")

</div>

I just took a quick look and would have to experiment, but one thing I find that often works is simply copying what works and pasting where it doesn’t work.

In your case, I would copy:

\<blockquote\>\<a rel=“bookmark” href=“[Ann Nicholson Haralambie, Attorney, P.C. | Tucson Child Custody and Child Welfare Lawyer](http://opalcat.com/Movies/movie-review-gray-matters-2006)”\>\<img src=“/images/18.jpg” alt=“” class=“articleimage” align=“left”\>\</a\>\<p\>\<img src=“/moviereviews/catstar.gif” alt=“” height=“14” width=“13”\> \<img src=“/moviereviews/catstar.gif” alt=“” height=“14” width=“13”\> \<img src=“/moviereviews/catstar.gif” alt=“” height=“14” width=“13”\> I really liked this movie. I got it from NetFlix after seeing a preview for it on some other \<span class=“caps”\>DVD\</span\>. I hadn’t heard of it before and didn’t have any expectations. It was very enjoyable for a light comedy. Gray is…\</p\>

And then paste that at the top of the next column "Most Recent Journal Entries"and see if that cleans up the entire column. Then you can go in and change the verbiage and such after the fact if it cleans up the font size.

If your site has worked up to now with the CSS, my guess is the problem isn’t with the CSS, it is a break in code somewhere in the second column. It happens…you accidentally erase a tiny bit of the code and everything goes wacko.

Just my 2 cents. I am sure someone with more expertise will come along with a better fix, but again…I usually copy what works and put it where it doesn’t work and it usually fixes the problem.

---

<div class="post-metadata">

**Author:** ![Engywook](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@Engywook](https://boards.straightdope.com/u/Engywook)\
**Post date:** [May 30, 2008, 8:30pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/3 "2008-05-30T20:30:54Z")

</div>

I tested the first two paragraphs, right next to each other, in both columns. A paragraph from the left column has the same (smaller) font size when copied, unmodified, into the right column.

The important difference between the left and right column items, I think, is that the left column has left-floated images while the right column does not. Note that I do not know yet **why** this is making a difference, but I have been able to fix the problem by adding this:

\*\*  
blockquote {  
font-size: 13px;  
}  
\*\*

Without looking more deeply into this, I think this does support your notion that the the relative font sizes do have something to do with this, but I don’t think it has anything to do with an unclosed HTML tag or any difference between the way the two \<td\>'s are handled.

Hope this helps. Nice site by the way… I know how exasperating these kinds of problems can get.

---

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [May 30, 2008, 8:53pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/4 "2008-05-30T20:53:40Z")

</div>

**DMark** : no it’s always done this, I just haven’t had time to try to mess with it until now. What you suggest wouldn’t work, unfortunately. It doesn’t matter what content I put in, the text is always smaller on the left. But aside from that, the site content is dynamic and pulled from a database. On the left it shows the most recent articles I’ve added to the site, while on the right it’s pulling an rss stream from my LiveJournal. It’s not just an html page that I could go paste in the code and change the words and then it’s fixed. I need to find the exact problem, and then find where in the various templates I can make a change to fix how it is displaying the stuff.

For example, the code that is generating that part of the page looks like this:  
\<txp:article status=“sticky” form=“sticky” /\>  
\<table border=“0” cellspacing=“10”\>\<tr valign=“top”\>\<td width=“50%”\>  
\<h2\>Most Recently Added Content:\</h2\>  
\<txp:article limit=“5” form=“excerpt\_cat” /\>  
\<h2\>Highest Rated Articles:\</h2\>\<em\>(This feature is in Beta testing)\</em\>  
\<ol\>\<txp:jmd\_rate\_article form=“highest\_rated” max\_value=“10” min\_value=“8” /\>\</ol\>\</td\>\<td width=“50%”\>  
\<h2\>Most Recent Journal Entries:\</h2\>  
\<txp:bit\_rss feed=“[Minutiae: OpalCat Minute by Minute](http://opalcat.livejournal.com/data/atom)” limit=“4” form=“rss” /\>…etc… so there’s not a place that I would paste rendered html content directly.

**Engywook** thanks for checking it out. I really don’t want to set a fixed size to all blockquotes on my site, though. Or really at all, especially since the rest of the sizing is done relative it could make the display look messed up somewhere else. I don’t think it’s an unclosed tag or anything like that, I think it’s just maybe an uneven number of div tags or something? Like one is nested inside an additional set from the other? The problem is I can’t find where that is happening.

I’m not gonna freak out and die if I can’t fix it or anything–I mean it’s been doing this for a year and a half since I redesigned the layout to the current one, and I’m not sure anyone but me really notices. Heh.

---

<div class="post-metadata">

**Author:** ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)\
**Post date:** [May 30, 2008, 10:15pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/5 "2008-05-30T22:15:57Z")

</div>

The stuff on the left is inheriting a P tag and the stuff on the right is not.

This is the stuff on the left:  
\*\*html \> body \> div #mainbox \> div #content \> table \> tbody \> tr \> td \> blockquote \> p  
\*\*

This is the stuff on the right:  
**html \> body \> div #mainbox \> div #content \> table \> tbody \> tr \> td \> blockquote**

According to the [Firefox Web Developer Plugin](https://addons.mozilla.org/en-US/firefox/addon/60), this is the CSS for the stuff on the left:

```auto

blockquote, h3, p, li (line 22)
{
padding-right: 10px;
padding-left: 10px;
font-size: 0.9em;
line-height: 1.6em;
}

```

This is the CSS for the stuff on the right:

```auto

blockquote, h3, p, li (line 22)
{
padding-right: 10px;
padding-left: 10px;
font-size: 0.9em;
line-height: 1.6em;
}

blockquote (line 29)
{
margin-right: 0pt;
margin-left: 20px;
}

```

Does that help? You should totally get that plugin for Firefox. Even if you don’t use Firefox as your regular browser, it’s mighty helpful. I found that info by going to the CSS Menu, then “View Style Information.”

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [May 30, 2008, 10:49pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/6 "2008-05-30T22:49:57Z")

</div>

Concur - it looks like the problem text just isn’t wrapped in \<p\> tags like the other bits.

Also, I second the recommendation for the web developer toolbar - it’s amazing.

---

<div class="post-metadata">

**Author:** ![ZebraShaSha](https://avatars.discourse-cdn.com/v4/letter/z/eada6e/32.png) [@ZebraShaSha](https://boards.straightdope.com/u/ZebraShaSha)\
**Post date:** [May 30, 2008, 10:53pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/7 "2008-05-30T22:53:30Z")

</div>

For the best cross-browser compatibility, EM’s are the only way to go. [Here’s](http://www.alistapart.com/d/howtosizetextincss/ss-test-5.html) a chart that explains the issue.

Next, download [this](http://chrispederick.com/work/web-developer/) plug-in. It will let you temporarily edit the CSS and HTML in a sidebar, so that any changes you make will be reflected instantly.

On the right, you have as the HTML:

> [@](#):
>
> \<blockquote\>Winter, in addition to all of its other loveliness, has a blissful lack of lawnmower noise. Around here the yards are big, and everyone has lawn tractors. It seems like during the warmer seasons, you can almost \<i\>always\</i\> hear at least one of them if not several. It’s a constant background noise and I hate it ☹  
> \<p class=“smallcaps” align=“right”\>\<em\>~ 05/30/2008 01:33 PM\</em\>\<br\>\<a href=“[Another reason I prefer winter: opalcat — LiveJournal](http://opalcat.livejournal.com/2157069.html)” title=“Permanent link to this article”\>Go To Entry\</a\> →\</p\>\</blockquote\>

But on the left, you have:

> [@](#):
>
> \<blockquote\>\<a rel=“bookmark” href=“[Ann Nicholson Haralambie, Attorney, P.C. | Tucson Child Custody and Child Welfare Lawyer](http://opalcat.com/Fun/so-you-think-you-can-dance-2008-auditions-recap-salt-lake-city-dallas)”\>\<img src=“/images/108.jpg” alt=“” class=“articleimage” align=“left”\>\</a\>\<p\>Last week on the season premiere I didn’t take notes, so I can’t recap that episode. Starting this week, however, I am going to try to write a recap of each new episode. This is episode 2, auditions from Salt Lake City, Utah and Dallas, Texas.\</p\>
> 
> \<p class=“smallcaps” align=“right”\>(\<a rel=“tag” href=“[Ann Nicholson Haralambie, Attorney, P.C. | Tucson Child Custody and Child Welfare Lawyer](http://opalcat.com/category/TV/)”\>TV\</a\>) \<a rel=“bookmark” href=“[Ann Nicholson Haralambie, Attorney, P.C. | Tucson Child Custody and Child Welfare Lawyer](http://opalcat.com/Fun/so-you-think-you-can-dance-2008-auditions-recap-salt-lake-city-dallas)”\>Read Article\</a\> →\</p\>\</blockquote\>

See? On the left column, you put your text in a \<p\>\</p\> , but not on the right. Simple fix!

---

<div class="post-metadata">

**Author:** ![GuanoLad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/guanolad/32/42_2.png) [@GuanoLad](https://boards.straightdope.com/u/GuanoLad)\
**Post date:** [May 31, 2008, 7:24am UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/8 "2008-05-31T07:24:17Z")

</div>

[QUOTE=ZipperJJ]  
According to the [Firefox Web Developer Plugin](https://addons.mozilla.org/en-US/firefox/addon/60)  
[/QUOTE]  
I just had to style a MySpace page for someone, and used this plug-in to help locate some of the worst of the offending code and fix it up.

Unfortunately even this powerfully useful tool could not defeat the miasmic cacophony that is MySpace’s shithouse HTML. Some of the text was completely beyond reach, and here’s why: class=““btext”” - they double-double-quoted, the morons.

---

<div class="post-metadata">

**Author:** ![OpalCat](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@OpalCat](https://boards.straightdope.com/u/OpalCat)\
**Post date:** [May 31, 2008, 8:29am UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/9 "2008-05-31T08:29:37Z")

</div>

I hard-coded the p tag into the right column’s template form and it seems to be working.  
Thanks everyone, and tomorrow when I’m not drag-ass tired I will play with those plugins!!

---

<div class="post-metadata">

**Author:** ![ZipperJJ](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zipperjj/32/211_2.png) [@ZipperJJ](https://boards.straightdope.com/u/ZipperJJ)\
**Post date:** [May 31, 2008, 7:05pm UTC](https://boards.straightdope.com/t/i-need-a-css-detective/451172/10 "2008-05-31T19:05:29Z")

</div>

[QUOTE=GuanoLad]  
I just had to style a MySpace page for someone, and used this plug-in to help locate some of the worst of the offending code and fix it up.

Unfortunately even this powerfully useful tool could not defeat the miasmic cacophony that is MySpace’s shithouse HTML. Some of the text was completely beyond reach, and here’s why: class=““btext”” - they double-double-quoted, the morons.  
[/QUOTE]

Maybe MySpace is planning on releasing their own browser, in an effort to take over the world (the courts say it worked for Microsoft). In this browser, double-double quotes will be the standard. When you use this browser every MySpace page will look absolutely beautiful instead of the horrendously fucked-up mishmash they currently are.

Yeah, that’s the ticket…
