EXAMPLE: CSS and Template (for beginners)
-
EXAMPLE: CSS and Template (for beginners)….
This will put a Thumbnail to the left of a box. With a Title.. An Excerpt.. etc.
This wraps your posts in a Purple Box with a White inner box.
It also makes your “boxes” with rounded corners and a nice “shadow” effect with the boxes.OK… thought I’d share… as I am a beginner… and maybe will this will help some of you. And please… as I am a beginner with a lot of this stuff I can’t answer many of your questions but this might help
For POSTS… (obviously you already have the plugin producing your posts)
In your “Template”<ul id="purple">[posts] <li id="whitepurple" class="withborder"> <div style="float:left;">[post_thumbnail width="125" height="75"]</div> <span style="font-size: 12pt;background-color: #ffff00;"><strong>[title]</strong></span> <br /> <span style="font-size: 10pt;">[excerpt wordlimit=20]</span>[more] [/posts]</ul>
And then in your “STYLE” the CSS input area put this…
.ul, #purple { border-radius: 10px/10px; -webkit-border-radius: 10px/10px; -moz-border-radius: 10px/10px; -ms-border-radius: 10px/10px; -o-border-radius: 10px/10px; background: #7220c9; margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px; box-shadow: 0 0 10px rgba(0,0,0,0.9); -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.9); -moz-box-shadow: 0 0 10px rgba(0,0,0,0.9); -ms-box-shadow: 0 0 10px rgba(0,0,0,0.9); -o-box-shadow: 0 0 10px rgba(0,0,0,0.9); /* No borders set */ } .li, #whitepurple { color: black; /* text color is black */ font-family: Arial; font-size: 14px; background: white; /* Content, padding will be white */ border-radius: 10px/10px; -webkit-border-radius: 10px/10px; -moz-border-radius: 10px/10px; -ms-border-radius: 10px/10px; -o-border-radius: 10px/10px; margin: 5px 5px 5px 5px; padding: 5px 5px 5px 5px; list-style: none /* no glyphs before a list item */ /* No borders set */ } LI.withborder { border-radius: 10px/10px; -webkit-border-radius: 10px/10px; -moz-border-radius: 10px/10px; -ms-border-radius: 10px/10px; -o-border-radius: 10px/10px; border-style: none; border-width: medium; /* sets border width on all sides */ border-color: #27d130; }
I probably have something wrong… but it works for me…
This is from here but has been explained other places too for CSS boxes.. etc
https://stackoverflow.com/questions/17757633/how-can-i-get-this-code-to-apply-the-styling-only-where-i-want-it
- The topic ‘EXAMPLE: CSS and Template (for beginners)’ is closed to new replies.