Help with CSS Code needed

Get HTML help, style input, and feedback on your pages from other SP members.
User Avatar
Nanuls

 
Posts: 724
Joined: Tue Apr 24, 2007 1:20 pm
Thanked: 8 times in 6 posts

Help with CSS Code needed

by Nanuls » Sun Feb 08, 2015 6:37 pm

Can anyone help me out with the following code. I'm trying to create a coloured box that contains text and has rounded edges. The box works fine but I cannot seem to do anything with the text. I'm trying to change the colour to white, but for some reason when I enter this code in SP the code that does this does not seem to work.

Does anyone have any solutions? Is there a CSS fix that would do the job?

Cheers

Dan

Code: Select all
<div style="width: 200px; height: 85px; background-color: #306090; box-shadow: 5px 5px 5px #888888; border-radius: 10px ;><font size="2" color="#FFFFFF">Name: Amphitheater Buttress<br/>Grade: Very Difficult<br/>Length: 200m<br/>Pitches: 10</font></div>
dim brys, dim chwys

User Avatar
rgg
Forum Moderator
 
Posts: 859
Joined: Sat Oct 02, 2010 7:15 pm
Thanked: 192 times in 154 posts

Re: Help with CSS Code needed

by rgg » Sun Feb 08, 2015 8:13 pm

On the first line, the string following the style attribute does not have a closing ", which I suppose should be placed right before the > early on the second line. Perhaps that's the problem?

The following user would like to thank rgg for this post
Nanuls

User Avatar
Nanuls

 
Posts: 724
Joined: Tue Apr 24, 2007 1:20 pm
Thanked: 8 times in 6 posts

Re: Help with CSS Code needed

by Nanuls » Sun Feb 08, 2015 10:08 pm

rgg wrote:On the first line, the string following the style attribute does not have a closing ", which I suppose should be placed right before the > early on the second line. Perhaps that's the problem?


Thanks very much, that did it!

Teach me not to not check things properly! :roll:
dim brys, dim chwys


Return to Page Help

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

cron