Forum Moderators: open

Message Too Old, No Replies

Over-Riding CSS in Blog Post (change font size)

         

renet

1:33 am on Aug 29, 2008 (gmt 0)

10+ Year Member



I would like to override the css for blog posts.

i.e.:

Sometimes I want to write 1 or more words or sentences but use a super large or large size font and have it also in italics.

In the particular case of the blog I am referring to the background is Black.. Text is White.

When I increase the font size and do italics in a block of text the text becomes black and a large area behind, above, on the sides and below the text turns white.. very annoying indeed.

I would simply like to see the text enlarged and the italics and the the text remains white with a black background.

Here is html:

<div class="entry">
<p><img class="size-full wp-image-48" title="TEXT" src="http://example.net/wp-content/uploads/2008/08/ld.jpg" alt="alt text" width="390" height="293" align="right" hspace="10" vspace="5" /></p>

<p>TEXT TEXT TEXT</p>
<p>TEXT TEXT TEXT</p>
<p>TEXT TEXT TEXT</p>

<h2><strong><em>&#8220;Headline Headline Headline<br />
Headline Headline Headline<br />
Headline Headline Headline<br />
Headline Headline Headline"</em></strong></h2>

</div>

regards

[edited by: tedster at 1:47 am (utc) on Aug. 29, 2008]
[edit reason] make H2 text anonymous [/edit]

tedster

1:49 am on Aug 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problems you are running into are probably because the css file for your page has rules that add display charactersitics you don't want.

renet

3:18 am on Aug 29, 2008 (gmt 0)

10+ Year Member



Ted,

Correct. So trying to figure out how to over ride the css code by using custom html in the post for special text effects. large fonts etc..

Do you know of any workaround? Or would I add additional css rules to allow for multiple textual options?

tedster

4:05 am on Aug 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You've got to know what the css file says, first of all.

You are apparently struggling with a Wordpress theme and want it to do something other than what it does, correct? If so, there's probably a better forum for your questions than the HTML and CSS forums it's our Content Management Systems [webmasterworld.com].

There you are more likely to run into members who are quite knowledgeable in Wordpress. I personally never touch the stuff ;)

renet

5:26 am on Aug 29, 2008 (gmt 0)

10+ Year Member



Thank you Ted!