Problems with div's, margin and padding not working
-
Hello everyone, I hope u are OK.
I need your help or ideas for my CSS problem.<?php get_header(); ?><div id="container">
<div class="preview-post">
<div class="preview-content">
<div class="entry-meta">
....
</div>
</div><div id="primary" class="sidebar-class">
<?php get_sidebar() ?>
</div></div><!---. preview-post-->
<div id="post-recent">
...
<div class="entry-content">
...
</div></div><!-- .post -->
</div><!--- .containter -->
<?php get_footer() ?>.panel{
margin: 300px 0px 0px 0px;
font-weight: 500;
width: 226px;
position:relative;
float: left;
}.single .preview{
height:300px;
margin:2px 4px 0 2px;
width:226px
}And I want to erase that margin 300px, and put sidebar under preview-post without it.
When I’m adding margin-bottom or padding-bottom to preview-post its still the same.
Any ideas? I’ve tried with postition: absolute or display: block, but still dont works..
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
-
First off, what is the URL of the site you are talking about? If it is hosted here at WordPress.com, you cannot use PHP, or any scripting for security reasons.
-
It’s not hosted at WP.com, just installed wordpress.
I’m still trying to put div under div, but still it looks like that:
-
The forum for self-hosted WordPress installations http://wordpress.org/support/ . Since what you are doing is not allowed here, we don’t know how to help you. The people over at WordPress.org support will be able to help you.
- The topic ‘Problems with div's, margin and padding not working’ is closed to new replies.