By bkosborne on
I have a view that was created to display 'reviews' (comments) for a product in ubercart. I added a header to the view that says "Product Reviews" presented like this:
<font style="size: 18px; text-decoration: underline">Product Reviews</font>
The text decoration is applied but not the font size. Why is this? When I go into firebug it is indeed applied to the element. But for some reason, it's taking the font that it inherited from the body tag (which is 12px/170% Verdana) for body.sidebar-left (which is confusing because the view is displayed beneath a node within the content area)
Can anyone clear this up for me?
Comments
I'd have to see the whole page
to figure out what's going on. Also, can I ask why a) you are using the font tag, and b) why you are doing the css in the html rather than the style.css file?
***edit***
Also, if you really, really want to do it that way, the "size" attribute is wrong. in css, the attribute is "font-size".
Tony
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
Wow okay. Yeah I'm dumb. Not
Wow okay. Yeah I'm dumb. Not sure why I was using the font tag there - I think that's probably why it wasn't working. I had meant to use the paragraph tag. Thanks
Yes, use CSS
Further to apero's comment, you can use View's built-in classes to add the styles to your theme's css file. Assuming you're talking about the View header rather than the title, the class should be
.view-header. Note that this will style the headers of all views. If you only want to style the header of that particular view, Views also has view-specific classes, allowing you to use something like.view-reviews .view-headerfor styling in your theme's CSS file. Firebug can confirm the exact classes you can use.Ah right... I just didn't
Ah right... I just didn't want to mess around with the templates yet because I'm just building functionality before I switch over to a bear bones theme and start themeing. I was just trying to do a quick test. Thanks guys