Need CSS help (I believe)
-
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.
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!
-
post your sidebar.php in that case.
btw i’m viewing your site in firefox and it doesn’t show any huge space :-S
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>
- Check Out My Artwork!
- Buy My Designs!
- eStudio
- Daily Dish Gossip Column
- Rocky Top Brigade
<?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>
- <?php get_links(-1, ‘
- ‘, ‘
‘, ”, FALSE, ‘id’, FALSE); ?>
- <br>
https://www.paintingchef.blogspot.com&t=PaintingChef’,’rollit’,’scrollbars=no,width=475,height=350,left=75,
top=175,status=yes,resizable=yes’));rollpop.focus();”>**Blogroll Me Bitches!!!**
<br>
- <img src=”https://banners.blogexplosion.com/button6.gif” width=80 height=15 border=0>
<img src=”https://www.bloglines.com/images/sub_modern5.gif” border=”0″ alt=”Subscribe with Bloglines”/> - <img src=”https://www.blogcatalog.com/images/buttons/blogcatalog5.gif” alt=”Search For Blogs, Submit Blogs, The Ultimate Blog Directory” style=”border: 0;” />
<img src=”https://www.blogwise.com/buttons/banner_blogwise.gif” border=”1″ width=”80″ height=”15″ alt=”Blogwise – blog directory”>
-
<!–Start Branica Code–>
<table Cellpadding=0 Cellspacing=0 Border=0><tr align=center><td>
<script language=”javascript”>
var data, p;
var agt=navigator.userAgent.toLowerCase();p=’http’;
if((location.href.substr(0,6)==’https:’)||(location.href.substr(0,6)==’HTTPS:’)) {p=’https’;} data = ‘&r=’ + escape(document.referrer) + ‘&n=’ + escape(navigator.userAgent) + ‘&p=’ + escape(navigator.userAgent)
if(navigator.userAgent.substring(0,1)>’3′) {data = data + ‘&sd=’ + screen.colorDepth + ‘&sw=’ + escape(screen.width+ ‘x’+screen.height)};
document.write(‘<img border=0 hspace=0 ‘+’vspace=0 src=”https://www.branica.com/counter.php?i=2637’ + data + ‘”>’);
</script><br><font size=”1″>
</td></tr></table>
<!–End Branica Code–> <br>
<!– Start of StatCounter Code –>
<script type=”text/javascript” language=”javascript”>
var sc_project=712031;
var sc_partition=5;
var sc_security=”4e82fd46″;
</script>
<script type=”text/javascript” language=”javascript” src=”https://www.statcounter.com/counter/counter.js”></script><noscript><img src=”https://c6.statcounter.com/counter.php?sc_project=712031&java=0&security=4e82fd46″ alt=”free web stats” border=”0″> </noscript>
<!– End of StatCounter Code –>
</div>–>
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 ??
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?
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?
Ok I did find this in the links.php
<em class=”clear”>no this won’t help. nothing is wrong with css tags. post your index.php
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.
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.
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(); ?>
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.
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.
Thanks Katie!!
Ok the clearing div is in ALL of the posts. I did just one and it fixed itself. (This isn’t my blog it’s a friend’s) so I think if I go thru and edit them all it will be ok. PRAISE JESUS!!
THANK YOU ALL FOR YOUR HELP!!!!!!!!!!!!!!!
- The topic ‘Need CSS help (I believe)’ is closed to new replies.