How can I get this code's styling to work?
-
Hello,
I am looking to use some code on a page. It works beautifully in a general ‘test’ html text editor. Yet for some reason, it is not working as expected when I put it on my site’s page where I want it.
What happens when it’s on my site’s page is that the words appear as a centered list but none of the styling around the words appears.
I viewed the page source when I had it there, and it shows that all of the styling is enclosed in <p> tags. I don’t understand that at all since, as you’ll see, there are no paragraph tags there.
I did not put any paragraph tags on the page, though the page source shows there’s other paragraph tags there. I don’t understand that either.
If you are wondering, I also always use only the text tab and never use the visual tab.
Do you have any suggestions on how I can get this to display with the styling rather than only the ‘ul’ items on the bottom (like now)?
<STYLE type="text/css"> UL { border-radius: 20px/20px; -webkit-border-radius: 20px/20px; -moz-border-radius: 20px/20px; -ms-border-radius: 20px/20px; -o-border-radius: 20px/20px; height: 150px; width: 527px; background: #27d130; margin: 12px 12px 12px 12px; padding: 5px 5px 5px 5px; box-shadow: 0 0 20px rgba(0,0,0,0.9); -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.9); -moz-box-shadow: 0 0 20px rgba(0,0,0,0.9); -ms-box-shadow: 0 0 20px rgba(0,0,0,0.9); -o-box-shadow: 0 0 20px rgba(0,0,0,0.9); /* No borders set */ } LI { color: black; /* text color is black */ font-family: Arial; font-size: 14px; background: white; /* Content, padding will be white */ border-radius: 20px/20px; -webkit-border-radius: 20px/20px; -moz-border-radius: 20px/20px; -ms-border-radius: 20px/20px; -o-border-radius: 20px/20px; margin: 12px 12px 12px 12px; padding: 12px 12px 12px 12px; list-style: none /* no glyphs before a list item */ /* No borders set */ } LI.withborder { border-radius: 20px/20px; -webkit-border-radius: 20px/20px; -moz-border-radius: 20px/20px; -ms-border-radius: 20px/20px; -o-border-radius: 20px/20px; border-style: none; border-width: medium; /* sets border width on all sides */ border-color: #27d130; } </STYLE> <UL> <LI><b><center>Here is some text.</center></b> <LI class="withborder">Here is additional text. </UL>
- The topic ‘How can I get this code's styling to work?’ is closed to new replies.