Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-17-2012, 08:56 PM   PM User | #1
LauraJae
New to the CF scene

 
Join Date: Dec 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
LauraJae is an unknown quantity at this point
Question Needing help with styling comment box!

I'm not the best at programming, I can just about do python, but I need some help with simple css styling!

[CODE]
<!-- begin htmlcommentbox.com -->
<div id="HCB_comment_box"><a href="http://www.htmlcommentbox.com">HTML Comment Box</a> is loading comments...</div>
<script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={};} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&mod=%241%24wq1rdBcg%24Zm/VrTRsqRMQBAdyE823s1"+"&opts=478&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/
</script>
<!-- end htmlcommentbox.com -->
[ICODE]

I want the submitted comments to be white, but when I add code the original owner has given us, it just turns the username white.

Any ideas?
LauraJae is offline   Reply With Quote
Old 12-18-2012, 08:29 AM   PM User | #2
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,816
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Really need to see the generated html but you might try:

Code:
#HCB_comment_box{color:#FFF}
If this doesn't work post a link to your page, or the actual html produced by your script - use Firebug or something similar to get this.

Last edited by SB65; 12-19-2012 at 08:41 AM..
SB65 is offline   Reply With Quote
Old 12-18-2012, 05:46 PM   PM User | #3
LauraJae
New to the CF scene

 
Join Date: Dec 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
LauraJae is an unknown quantity at this point
I installed firebug and it won't work. Does the inspect element thing do the same?

Here's one of the pages where the comment box is installed
LauraJae is offline   Reply With Quote
Old 12-19-2012, 08:41 AM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,816
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Quote:
Originally Posted by LauraJae View Post
Here's one of the pages where the comment box is installed
Where?
SB65 is offline   Reply With Quote
Old 12-19-2012, 06:07 PM   PM User | #5
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Try:

Code:
#HCB_comment_box blockquote {margin: 10px;overflow: hidden;color: white;}
Test: http://jsfiddle.net/fVtsJ/
tempz is offline   Reply With Quote
Old 12-19-2012, 06:32 PM   PM User | #6
LauraJae
New to the CF scene

 
Join Date: Dec 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
LauraJae is an unknown quantity at this point
That's weird! It must have been filtered out...

Find it HERE

Anyway, the owner said that it needs style tags to work. The website for the actuall comment box can be found HERE

It doesn't seem to work @Tempz
LauraJae is offline   Reply With Quote
Old 12-20-2012, 12:23 PM   PM User | #7
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,816
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Try:

Code:
#main-wrap #HCB_comment_box blockquote {color:white}
(The #main-wrap is required in the selector to give a higher specificity than this statement:

Code:
#main-wrap .container blockquote {
    background: url("theme/saperator-v.png?984031") repeat-y scroll left top transparent;
    border-left: medium none;
    color: #999999;
    font-style: italic;
    margin: 15px 0;
    padding-left: 30px;
}
- which is why the suggestion above doesn't work.)
SB65 is offline   Reply With Quote
Users who have thanked SB65 for this post:
LauraJae (12-22-2012)
Old 12-20-2012, 05:03 PM   PM User | #8
LauraJae
New to the CF scene

 
Join Date: Dec 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
LauraJae is an unknown quantity at this point
So how would insert into the javascript?
LauraJae is offline   Reply With Quote
Old 12-21-2012, 12:17 AM   PM User | #9
tempz
Regular Coder

 
Join Date: Jul 2012
Location: London
Posts: 436
Thanks: 4
Thanked 80 Times in 80 Posts
tempz is an unknown quantity at this point
Quote:
Originally Posted by LauraJae View Post
So how would insert into the javascript?
You don't; when you output the JavaScript, this will automatically style it from your style-sheet
tempz is offline   Reply With Quote
Users who have thanked tempz for this post:
LauraJae (12-22-2012)
Old 12-22-2012, 06:08 PM   PM User | #10
LauraJae
New to the CF scene

 
Join Date: Dec 2012
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
LauraJae is an unknown quantity at this point
Oh, I put this in my style sheet! I get it now :0

Thank you so much! It works!

Last edited by LauraJae; 12-22-2012 at 06:12 PM..
LauraJae is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 07:20 PM.


Advertisement
Log in to turn off these ads.