Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Styling third-party widgets with CSS
Old 05-09-2009, 12:25 AM Styling third-party widgets with CSS
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
Hi, I don't know if what I'm trying to do is possible, so I thought I'd come here and find out before i waste any more of my time.

I have a blog (blogger) of which I have full access to the templates html/css. I was looking for an alternative comments system and found one at DISQUS. The method of installing their widget was thus: I downloaded my blog template before uploading it to their site. Their wizard then installed the comment widget and presented me with the ammended template which I simply pasted back into my template's html.

I'm now using the 'inspect' function (on the Firefox's tool Firebug) to get the class names etc of all the different elements that go to make up the DISQUS comments system, and then using the <style> tag to customize the look.

I've discovered that I can customize certain elements, but am having trouble with others. For instance, I discovered that the class name for a little drop-down options box was 'dsq-item-sort'. I didn't want this, so used

Quote:
.dsq-item-sort { display: none; }
to hide it. This did the trick.

I now want to customize the look of the 'submit comment' button. I used Firebug to hover over the button and it highlighted the following in the coding

Quote:
<div class="submit-footer"><input id="default-submit" class="submit" type="submit" value="Post as OurJud"/>

<input id="custom-submit" class="submit" type="submit" value=""/>


</div>
I have tried styling this button with the following

Quote:
.submit-footer
.default-submit
.submit
But none of them made any difference.

Am I trying to acheive something that isn't possible?

Sorry for such a long-winded question and thanks in advance.
Billy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2009, 12:36 PM Re: Styling third-party widgets with CSS
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
Try this.
input[type=submit] {color:#fff;}

If that doesn't work, define more specific
.submit-footer
input[type=submit] {color:#fff;}

If you want to view all class and id's that are relevant to an element use the web developer add-on for Firefox. Use Outline - Current Element
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 05-09-2009, 12:43 PM Re: Styling third-party widgets with CSS
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Even better tool - use the Firebug extension, it will easily show you ALL of the styles in the cascade that are affecting any given element.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-09-2009, 02:10 PM Re: Styling third-party widgets with CSS
Skilled Talker

Posts: 54
Name: Fred
Trades: 0
Thanks both of you.

Geek, I tried both your suggestions with {display: none;} just as a tester to see if it worked, but neither of your soloutions made a difference.

I've now discovered a custom css page on the website from where I got the comment widget, which says that I have to use an external style sheet to style some elements. Does that mean I can't do what I want without using an external style sheet?
Billy is offline
Reply With Quote
View Public Profile
 
Old 05-09-2009, 07:49 PM Re: Styling third-party widgets with CSS
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You should be using external stylesheets anyway, so all you'd have to do is add another linked stylesheet to the pages.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Styling third-party widgets with CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.71047 seconds with 12 queries