CSS as used on http://afterthemouse.com/user/18

CSS as used on http://afterthemouse.com/user/18

4 replies
Joined: 08/21/2007
User offline. Last seen 2 weeks 4 days ago.
Having talked to Michelle she sujested I post the CSS I used for my take on the profile page Firstly the Bubble outlines. These were developed by the great Stu Nicholls on cssplay.co.uk all the code is here to use. All I did was adapt the colours for the site. Onion skin drop shadows on the avatar. Again, not at all my own work. British CSS guru Andy Budd wrote a great book CSS Mastery (trust me, buy it!) and he put the files on line too! you’ll find ALMOST everything I used in the /CSSMastery-code/Source Code/Chapter03/onionskin-drop-shadow.htm page or in the images file. I say almost as I added two little snippets to space out the photos in the profile, I found the positioning wasn’t quite right for me so I added .img-placer and .img_prev-placer. So I added this to Style.css /* easy drop shadow================================== */.img-placer { position: relative; left: 10px; top: 5px;}.img-prev-placer { position: relative; left: 4px; top: 4px;}.img-wrapper { background:url(http://mysite.com/files/drop/shadow.gif) no-repeat right bottom; float: left;}.img-outer {  background:url(http://mysite.com/files/drop/bottom-left2.gif) no-repeat left bottom;  float: left; /* :KLUDGE: Fixes problem in IE5.2/Mac */}.img-inner {  background:url(http://mysite.com/files/drop/top-right2.gif) no-repeat top right;  padding: 0 5px 5px 0;  float: left; /* :KLUDGE: Fixes problem in IE5.2/Mac */}.img-wrapper img {  background-color: #fff;  border: 1px solid #a9a9a9;  padding: 4px;  display: block;} Then in the node-uprofile.tpl I wrapped the existing code with my div’s <!-- Print the user's avatar --><div class="img-placer"> <div class="img-wrapper">  <div class="img-outer">   <div class="img-inner">    <?php print theme("user_picture",$profileuser); ?>   </div>  </div> </div></div> [Reprinted the second code snippet below as it didn't work in this post] Easy… Enjoy
Joined: 08/21/2007
User offline. Last seen 2 weeks 4 days ago.
Learning the Drupal so i can

Junked after Michelle's edit:

Joined: 08/21/2007
User offline. Last seen 2 weeks 4 days ago.
<?php print

Junked after Michelle's edit:

Joined: 04/19/2007
User offline. Last seen 4 weeks 2 days ago.
Dang spammers

Unfortunately, I get a lot of spam on this site so the filters are fairly aggressive. Just rescued this from the spam folder.

Thanks for posting it. One note I have is that you might want to override theme_user_picture and put the extra markup in there. That way it will show the frame wherever the user picture is.

Michelle

Joined: 08/21/2007
User offline. Last seen 2 weeks 4 days ago.
Thanks...

I looked at that, but in many cases such as the icons on the front page just looked wrong...

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options