WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty Eleven Posts with borders (6 posts)

  1. Yro
    Member
    Posted 2 years ago #

    Hi all.

    I need some help here.

    Im with Twenty Eleven CHILD THEME here and I want to make the posts to be rounded by borders and I want to make these borders (squared) with transparency.

    Is that possible? Can enybody help me with it?

    Sorry about my english.

  2. Yro
    Member
    Posted 2 years ago #

    So..

    I found some infos about my asking for help and Ill try to explain more what I want here...

    Take a look at this link: http://wpbtips.wordpress.com/2009/10/14/borders-pt-1/

    I want my posts to be showed in blocks like "outset (border:6px)" item.

    Is that possible in Twenty Eleven Child theme?

    Please, somebody help me with it.

  3. Digital Raindrops
    Member
    Posted 2 years ago #

    Yes using the post_class(), have a read of this for different ideas on setting the post class.

    All we do is add another 'custom' class to the post, so we can style it.

    Here is how you might add to your child themes style.css:

    .box-1 {
    	float: left;
    	min-height: 1px;
    	padding: 1em;
    	border: 6px inset #9FB6CD;
    }

    A variation:

    .box-2 {
    	float: left;
    	min-height: 1px;
    	padding: 1em;
    	border: 5px solid #F1F1F1;
             box-shadow: 0 1px 2px rgba(51, 51, 51, 0.65);
    }

    Copy content.php to the child theme:
    find:

    <?php post_class(); ?>>

    change to

    <?php post_class( 'box-1' ); ?>>

    or

    <?php post_class( 'box-2' ); ?>>

    HTH

    David

  4. Yro
    Member
    Posted 2 years ago #

    Well, Ive tried this code with no lucky:

    .entry-header .entry-meta {
    border:1px outset (border:2px) #F0F0F0;
    }

    Im learning CSS yet... Please help me with it..

    Edit.: sorry dude. Iwas writing this when You post your help. Ill try it right now and post here my results...

  5. Yro
    Member
    Posted 2 years ago #

    OMG. Thats beautiful!!!

    Thank You man. Im really happy with Your help here.

    Ill post another topic in this forum for other question I have.

    Thanks again dude.

  6. Yro
    Member
    Posted 2 years ago #

    Problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic