Forums

Need CSS help (I believe) (31 posts)

  1. lysie6211
    Member
    Posted 6 years ago #

    I have been trying my hand at designing a blog website for a friend and I'm almost done except with the fact the text for the actual blogs is all off on the left.

    http://paintingchef.com/

    I want all of the text to fit into the green boxes. I have messed around with the CSS a million times and maybe I'm just tired but I can't get the Left side moved. Can anyone suggest anything?

    Thanks a million!

  2. Ajay
    Member
    Posted 6 years ago #

    Edit the class entry and add a pit of margin and maybe padding to it

    There is also a <div style="clear :both"> tag just after it which you can try to remove and see if it helps

  3. lysie6211
    Member
    Posted 6 years ago #

    Thanks. I tried adding some padding and removed the clear:both tag and it's still being difficult. (Not to mention the sidebar on April's Archive is screwed up!) I'll keep plugging along...

  4. Ajay
    Member
    Posted 6 years ago #

    Did you try a margin?
    Or increasing it in the tag above

  5. lysie6211
    Member
    Posted 6 years ago #

    I've changed the CSS around so much I'm going blind. I also did some adjustments on the php pages but I'm very leary of doing anything on those pages since I don't know Perl at all and I don't want to screw that up. I'll post the CSS below, maybe another pair of eyes will catch something. Also the text problem is only happening on the front page of the site. If you go to the archives of previous months it's totally fine. I'm so stumped.

    CSS:

    /*
    Theme Name: Gerber Daisy
    Description: Gerber Daisies with a twist of lime sherbert!
    Author: Elyse
    Author URI: http://www.estudiodesigns.com
    Version: 1.5

    The CSS, XHTML and design is released under GPL:
    http://www.opensource.org/licenses/gpl-license.php

    */

    body {
    background-color: #FFFFFF;
    font-family: "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    }

    a, a:visited, a:link {
    color: #990000;
    }

    a:hover {
    text-decoration: none;
    background-color: #CCFF99;
    }

    a:active {
    background-color: #CFF99;
    }

    input, textarea {
    background-color: #FFFFFF;
    }

    input:focus, textarea:focus {
    background-color: #FFFFFF;
    }

    #wrapper {
    background-color: #990000;
    background-image: url(images/bg_main.jpg);
    background-repeat: repeat-y;
    margin: 20px auto;
    width: 650px;
    }

    /* Header */

    #head {
    height: 273px;
    width: 650px;
    background-image: url(images/bg_head.jpg);
    }

    #head div#blog_title {
    font-family: "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 2.5em;
    color: #99FF66;
    position: relative;
    top: 170px;
    left: 30px;
    }

    #head div#blog_title a {
    color: #99FF66;
    text-decoration: none;
    }

    #head div#blog_title a:hover {
    background-color: transparent;
    }

    /*Main Content*/

    #main {

    float: left;
    width: 425px;
    background-color: transparent;
    }

    #main h1, #main h2 {
    margin: 20px 5px 47px;
    font-family: "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 2.0em;
    font-weight: normal;
    color: #990000;
    }

    #main h2 {
    font-size: 1.5em;
    }

    #main h1 a, #main h2 a {
    text-decoration: none;
    }

    #main p, #main div.navigation, #main ul, #main div.post_info, #main div.date, #main #searchform {
    margin: 1px 20px 5px 47px;
    text-align: justify;
    line-height: 1.4em;
    padding: 5px

    }

    .left {
    text-align: left;
    padding-left:5px
    }

    .right {
    text-align: right;
    padding-right:5px
    }

    #main div.post_info {
    border-top: 1px dotted #66CC00;
    }

    #main div.date {
    margin-bottom: 0px;
    }

    /* Sidebar */

    #sidebar {
    float: left;
    width: 220px;
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
    background-image: url(images/bg_sidebar_main.jpg);
    background-repeat: repeat-y;
    }

    #sidebar h4 {
    background-image: url(images/bg_sidebar_head.jpg);
    background-repeat: no-repeat;
    background-color: transparent;
    font-size: 1.3em;
    font-weight: normal;
    font-family: "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 25px 0 14px 20px;
    }

    #sidebar ul {
    margin: 0;
    padding: 0 0 40px 0;
    list-style: none;
    background-image: url(images/bg_sidebar_footer.jpg);
    background-repeat: no-repeat;
    background-position: bottom left;
    }

    #sidebar ul li {
    background: transparent;
    padding: 0 0 3px 30px;
    }

    /*Footer*/

    #footer {
    width: 650px;
    background-image: url(images/bg_footer.jpg);
    background-repeat: no-repeat;
    background-color: #990000;
    clear: both;
    padding-top: 50px;
    padding-bottom: 30px;
    color: #99FF66;
    }

    #footer p {
    margin: 0 50px;
    font-size: 0.8em;
    line-height: 1.5em;
    }

    #footer a, #footer a:link, #footer a:visited, #footer a:hover, #footer a:active {
    color: #99FF66;
    background: transparent;
    }

    /* Comment Styles */

    #commentform {
    margin-bottom: 40px;
    }

    #commentform input, #commentform textarea {
    width: 305px;
    margin: 0 20px;
    padding: 3px;
    color: #FFFFFF;
    font-family: "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 1.0em;
    line-height: 1.4em;
    }

    #commentform input[type=submit] {
    width: 13em;
    float: right;
    }

    #commentform label {
    display: block;
    padding-bottom: 3px;
    }

    #commentlist {
    margin: 0;
    padding: 0;
    margin: 0 20px 15px 50px;
    line-height: 1.4em;
    list-style-type: none;
    }

    #commentlist li {
    padding: 0;
    margin: 0 0 30px 0;
    }

    #commentlist li p {
    padding: 0;
    margin: 0 3px 10px 3px;
    }

    #commentlist cite {
    display: block;
    background-color: #FFFFFF;
    padding: 3px;
    font-style: normal;
    font-weight: bold;
    margin-bottom: 3px;
    }

    #searchform input[type=submit] {
    margin-top: 2px;
    }

    /*Comments Popup*/

    #comments_popup {
    background-color: #FFFFFF;
    font-family: "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    margin: 0;
    padding: 0;
    }

    #comments_popup h1#header {
    background-color: #FFFFFF;
    margin: 0 0 20px 0;
    padding: 10px;
    font-family: "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 2.5em;
    color: #336600;
    }

    #comments_popup h1#header a {
    color: #99FF66;
    text-decoration: none;
    }

    #comments_popup h1#header a:hover {
    background-color: transparent;
    }

    #comments_popup #main {
    width: 100%;
    }

    #comments_popup #main p, #comments_popup #main h2, #comments_popup #main #commentlist {
    margin: 0 10px 15px 10px;
    padding: 0;
    }

    #comments_popup #footer {
    background-color: #990000;
    background-image: none;
    width: 100%;
    padding: 10px 0;
    }

  6. lysie6211
    Member
    Posted 6 years ago #

    After some serious tinkering I finally got the text in the green boxes. Except now the side bar and comments are all off so I'll have to keep tinkering. Thanks for your help!!

  7. lysie6211
    Member
    Posted 6 years ago #

    Ok I need some help if any kind soul can. I finally got the side bar formatted and working properly. But now my entries and comments are off. My first entry is fine but the second entry the post title is there and then there is a HUGE space until the actual entry. I'm so confused because everytime I change the CSS thinking I fixed one thing it screws up another. Any help would be so gladly appreciated. I'm going crazy.

  8. KunalGoel
    Member
    Posted 6 years ago #

    I'm not sure but try replacing "div.post_info" with "div.post" on all occurences, in your css.

  9. lysie6211
    Member
    Posted 6 years ago #

    Thanks! But I did that and it didn't change anything. I swear this is like a damn Rubix cube!!

  10. KunalGoel
    Member
    Posted 6 years ago #

    post your css file as it stands currently and I'll see if I can help.

  11. katie1
    Member
    Posted 6 years ago #

    I noticed in your .right that you're missing a semi-colon ";" on the padding style.

  12. katie1
    Member
    Posted 6 years ago #

    And .left!

  13. lysie6211
    Member
    Posted 6 years ago #

    body {background: #FFF;
    font: 12px "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    a, a:visited, a:link {color: #900;}

    a:hover {text-decoration: none; background: #CF9;}

    a:active {background: #CFF99;}

    input, textarea {background: #FFF;}

    input:focus, textarea:focus {background: #FFF;}

    #wrapper {
    margin: 20px auto;
    width: 650px;
    background: #900 url(images/bg_main.jpg) repeat-y;}

    #head {
    height: 273px;
    width: 650px;
    background: url(images/bg_head.jpg);}

    #head div#blog_title {
    color: #9F6;
    position: relative;
    top: 170px;
    left: 20px;
    font: 2em "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #head div#blog_title a {color: #9F6; text-decoration: none;}

    #head div#blog_title a:hover {background: transparent;}

    #main {
    width: 425px:
    float: left;
    background: transparent;}

    #main h1, #main h2 {
    margin: 0px 20px 5px 47px;
    color: #900;
    font: normal 1.5em "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #main h2 {font-size: 1.5em;}

    #main h1 a, #main h2 a {text-decoration: none;}

    #main p, #main div.navigation, #main ul, #main div.post, #main div.date, #main #searchform, #main div.entry
    {margin: 0 20px 15px 50px;
    font size: 2.0em
    font weight: normal
    text-align: justify:
    line-height: 1.4em;}

    .post {padding: 0px 300px 0px 50px;}

    .left {text align: left;}

    .right {text align: right;}

    #main div.post {
    margin: 0 20px 15px 50px;
    border-top: 1px dotted #6C0;}

    #main div.date {
    margin-bottom: 0;}

    #sidebar {
    float: right;
    width: 220px;
    margin: 20px 0 0 0;
    padding: 0;
    list-style: none;
    background: url(images/bg_sidebar_main.jpg) repeat-y;}

    #sidebar h4 {
    margin: 0;
    padding: 25px 0 14px 20px;
    background: transparent url(images/bg_sidebar_head.jpg) no-repeat;
    font: normal 1.3em "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #sidebar ul {
    margin: 0;
    padding: 0 0 40px 0;
    list-style: none;
    background: url(images/bg_sidebar_footer.jpg) no-repeat bottom left;}

    #sidebar ul li {
    background: transparent;
    padding: 0 0 3px 30px;}

    #footer {
    width: 650px;
    clear: both;
    padding-top: 50px;
    padding-bottom: 30px;
    color: #9F6;
    background: #900 url(images/bg_footer.jpg) no-repeat;}

    #footer p {
    margin: 0 50px;
    font-size: 0.8em;
    line-height: 1.5em;}

    #footer a, #footer a:link, #footer a:visited, #footer a:hover, #footer a:active {
    color: #9F6;
    background: transparent;}

    #commentform {
    margin-bottom: 40px;}

    #commentform input, #commentform textarea {
    width: 305px;
    margin: 0 20px;
    padding: 3px;
    color: #FFF;
    font: 1.0em/1.4em "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #commentform input[type=submit] {
    width: 13em;
    float: left;}

    #commentform label {
    display: block;
    padding-bottom: 3px;}

    #commentlist {
    margin: 0 20px 15px 50px;
    padding: 0;
    line-height: 1.4em;
    list-style-type: none;}

    #commentlist li {
    padding: 0;
    margin: 0 0 30px;}

    #commentlist li p {
    padding: 0;
    margin: 0 3px 10px 3px;}

    #commentlist cite {
    display: block;
    padding: 3px;
    font-style: normal;
    font-weight: bold;
    margin-bottom: 3px;
    background: #FFF;}

    #searchform input[type=submit] {
    margin-top: 2px;}

    #comments_popup {
    margin: 0;
    padding: 0;
    background: #FFF;
    font: 12px "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #comments_popup h1#header {
    margin: 0 0 20px;
    padding: 10px;
    color: #360;
    background: #FFF;
    font: 2.5em "Trebuchet MS", "Tahoma", Verdana, Geneva, Arial, Helvetica, sans-serif;}

    #comments_popup h1#header a {
    color: #9F6;
    text-decoration: none;}

    #comments_popup h1#header a:hover {
    background: transparent;}

    #comments_popup #main {
    width: 100%;
    }
    #comments_popup #main p, #comments_popup #main h2, #comments_popup #main #commentlist {
    margin: 0 10px 15px 10px;
    padding: 0;}

    #comments_popup #footer {
    width: 100%;
    padding: 10px 0;
    background: #900 none;

  14. katie1
    Member
    Posted 6 years ago #

    you're missing a couple of closing tags....

    #main p, #main div.navigation, #main ul, #main div.post, #main div.date, #main #searchform, #main div.entry {
    margin: 0 20px 15px 50px;
    font size: 2.0em ;
    font weight: normal;
    text-align: justify ":" (wrong - should be ;
    line-height: 1.4em;
    }

  15. KunalGoel
    Member
    Posted 6 years ago #

    your site looks fine now. what exactly do you require now?

  16. lysie6211
    Member
    Posted 6 years ago #

    Ok so the changes Katie had me make did some changes but if you scroll down to the second entry you get the title and then there is this HUGE space before the actual post. It didn't used to do that but started to once I changed the order of the php calls in the index in order to get the sidebar fixed.

  17. KunalGoel
    Member
    Posted 6 years ago #

    post your sidebar.php in that case.

  18. KunalGoel
    Member
    Posted 6 years ago #

    btw i'm viewing your site in firefox and it doesn't show any huge space :-S

  19. lysie6211
    Member
    Posted 6 years ago #

    Well then everyone must now use firefox!! =) I moved the php sidebar call because the sidebar wasn't going over to the right it was going underneath my entries.

    Here is the sidebar php:
    <!--
    <div id="sidebar">
    <img src="images/sp.jpg" width="95" height="75">
    <div align="left">

    • Painting Chef - Augusta, GA
    • My endless quest for
    • motherhood and the
    • perfect 4-inch stilettos.
    • With a little extra snark
    • for good measure. This is
    • where I keep my ramblings
    • as they have gotten too
    • numerous to store in my head

    </div>

  20. Check Out My Artwork!
  21. Buy My Designs!
  22. eStudio
  23. Daily Dish Gossip Column
  24. Rocky Top Brigade
  25. <?php wp_list_pages('title_li=<h4>' . __('Pages') . '</h4>' ); ?>

    <h4>Last Ten Posts</h4>

      <?php get_archives('postbypost', '10', 'html', '', ''); ?>

    <h4><?php _e('Archives:'); ?></h4>

      <?php get_archives('monthly', '', 'html', '', '', TRUE); ?>

    <h4><?php _e('Categories:'); ?></h4>

      <?php list_cats(FALSE, '', 'name', '', FALSE, TRUE, FALSE, TRUE); ?>

    <h4><?php _e('Search:'); ?></h4>

    • <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <h4><?php _e('Links:'); ?></h4>

  26. <?php get_links(-1, '
  27. ', '
  28. ', '', FALSE, 'id', FALSE); ?>

    <br>

    </div>-->

  • katie1
    Member
    Posted 6 years ago #

    Ok. Had a look in IE6 and you're right. There's a whopping bit gap between posts. I also had a look at your source view, and noticed:

    <div class="post">
    <div class="date"><small>PaintingChef — September 23, 2005, 10:04 am</small>
    </div>

    <h1 id="post-131">Apparently the voices in my head have a wicked sense of humor.</h1>
    <div class="entry">
    <div style="clear:both;"></div>

    I think you'll find that if you remove this clearing div from inside your entry div's then wrapping your text between 's the gap should be removed.

    You're clearing formating inside the entry div's, which I know you don't want to do.

    Let me know how you go :)

  • lysie6211
    Member
    Posted 6 years ago #

    Thanks. I thought it was something to do with that and I have search thru my CSS and my php and I can't locate where that div is. I would think it would be in the index.php right?

  • katie1
    Member
    Posted 6 years ago #

    Yes, I'd imagine so. If not, then try:

    single.php
    post.php
    or any other php that you've copied and remaned. Even category.php, if one is set up.

    What editor are you using to design the site? Or are you design straight into WordPress itself?

  • lysie6211
    Member
    Posted 6 years ago #

    Ok I did find this in the links.php
    <em class="clear"> 

  • KunalGoel
    Member
    Posted 6 years ago #

    no this won't help. nothing is wrong with css tags. post your index.php

  • lysie6211
    Member
    Posted 6 years ago #

    I've using a theme that I modified. (Amsterdamn Nights) But I've pulled that thing apart completely. I've designed websites (using Dreamweaver) but never a blog site. A friend asked me to as a favor and it hasn't been going well. Everything I know doesn't make sense and it's driving me insane.

  • katie1
    Member
    Posted 6 years ago #

    OK. Note that down as a snippet in a text file on your desktop for further use, but that's not what you're looking for.

    Open index.php again (I know you've done this a thousand times already :) ) Go directly to any coding that has "entry" and carefully search for the clearing div. Work slowly. Once you've checked it and found zip, open single and do the same. then post. Then page. Then category.

    Work your way thru all of them; it's not in your sidebar, cos it's "post text". It's not in your header, either.

    I'd check also your comments.php to be on the safe side, although what I looked at was a typical post, with no comment section attached.

    let me know how you go - and Good Luck! It's a right pain in the &%#@ when you can't find it the first time.

  • lysie6211
    Member
    Posted 6 years ago #

    Before I forget THANK YOU both so much for the help!!

    Here is the index.php:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="main">
    <?php if (have_posts()) : ?>
    <div class="navigation">
    <div class="left"><?php previous_post('« %', '', 'yes'); ?></div>
    <div class="right"><?php next_post('% » ', '', 'yes'); ?></div>
    </div>
    <?php while (have_posts()) : the_post(); ?>

    <div class="post">
    <div class="date">
    <small><?php the_author('nickname'); ?> — <?php the_date(); ?>, <?php the_time(); ?></small>
    </div>

    <h1 id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h1>

    <div class="entry">

    <?php the_content(__('(more...)')); ?>
    </div>

    <div class="post_info">
    <small><?php _e("Filed under:"); ?> <?php the_category(', ', 'single'); ?> — <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), __('comments-link'), __('Sorry, the comment form is closed at this time.')); ?></small>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>

    <?php endwhile; ?>
    <div class="navigation">
    <div class="left"><?php previous_post('« %', '', 'yes'); ?></div><div class="right"><?php next_post('% » ', '', 'yes'); ?></div>
    </div>

    <?php else : ?>

    <h1>Not Found</h1>
    <?php _e("Sorry, but you are looking for something that isn't here."); ?>
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    <?php endif; ?>

    </div>

    <?php get_footer(); ?>

  • katie1
    Member
    Posted 6 years ago #

    Ok. Here's a little trick I've used to keep track of what goes where.

    Open index.php again, and this time type <!-- index --> right next to <div class="entry"> so it looks like this:

    <div class="entry"><!-- index-->

    Then open all other php's and type exactly the same thing, only changing the index to match the title of your php. then go to your site and use the source view to open your active page where you're having trouble. You'll see your "comment" right next to the <div class="entry">, which will tell you what php is connected to the clearing div.

    then you'll be able to open that particular php and delete the code.

  • katie1
    Member
    Posted 6 years ago #

    PS: I'd also check the actual post manage/posts/whatever the name of the post was - just in case you actually wrote the clearing div in the body of your post.

  • lysie6211
    Member
    Posted 6 years ago #

    Thanks Katie!!

  • 12

    Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags