Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] custom css style selectors (http://forum.bytesforall.com/showthread.php?t=16434)

LilyBurbank Jan 6, 2012 02:24 PM

[SOLVED] custom css style selectors
 
Question: How can I get the following styling code out of the html and into the CSS Inserts? It doesn't seem to work with the usual "#custom_div_name."

Site: www.socalpianoacademy.com/dev

HTML code on home page:
<div style="background: url('http://socalpianoacademy.com/dev/wp-content/uploads/2012/01/mission_doily.gif') no-repeat; display: block; width: 305px; height: 130px; font-size: 85%; text-align: center; margin: 0 auto;">
<p style="padding: 40px 40px; line-height: 1.4em;"><strong>Our Mission:</strong> To provide the highest quality and affordable piano and music education to all members of our Los Angeles community.</p>
</div>

Thanks,
Connie

juggledad Jan 6, 2012 02:33 PM

You need to change the HTML to something like this
HTML Code:

<div id="aa">
<p><strong>Our Mission:</strong> To provide the highest quality and affordable piano and music education to all members of our Los Angeles community.</p>
</div>

Then create a css selector to address the div
HTML Code:

div#aa {...}
then code the css rules for all of this
HTML Code:

style="background: url('http://socalpianoacademy.com/dev/wp-content/uploads/2012/01/mission_doily.gif') no-repeat; display: block; width: 305px; height: 130px; font-size: 85%; text-align: center; margin: 0 auto;"
then you need another CSS Selector for the <p>
HTML Code:

div#aa p {...}
and code the rules for
HTML Code:

style="padding: 40px 40px; line-height: 1.4em;"

LilyBurbank Jan 7, 2012 03:31 PM

Thank you! And though I've tried the same idea for sidebar text widgets, it's not working and I assume I just don't have the correct selector. Using Firebug inspector, the text widget I'd like to style is titled div#text-9. Should this then be the correct CSS?

div#text-9 {
border: 5px solid #cccccc;
background-color: #66cccc;
}

and

div#text-9 p {...formatting...}

juggledad Jan 7, 2012 03:49 PM

1) I don't see that in your css inserts
2) check your css inserts for a syntax error - you have one

LilyBurbank Jan 7, 2012 03:54 PM

I think of myself as having an eagle-eye. How then did I miss the closing parenthesis instead of a closing bracket? I've donated to BFA before, but I have to send you something for saving me time torn-out hair.

You are wonderful - has anyone ever told you that??
- Connie Nassios ;)


All times are GMT -6. The time now is 09:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.