space problem

This is a discussion on "space problem" within the Web Page Design section. This forum, and the thread "space problem are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 6th, 2008, 18:40
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
space problem

i have this in my blog

PHP: Select all

echo '<hr></hr>';
      print  
$row->title ;
      echo 
'&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; ';
      print 
strftime('%d %B %Y'$row->date);
      echo 
nl2br("\n");
      echo 
nl2br("\n");
      print 
$row->blog_mes
but i realised whilst i was inserting the &nbsp; that if the title is going to be longer or shorter in the blogs ( obvious overlook ), the date will not be over to the far right and stay on the top line all the time, anyone got any ideas how to get around this, thanks
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote

  #2 (permalink)  
Old Feb 6th, 2008, 18:43
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: space problem

Fix it with CSS.
PHP: Select all

   echo '<span style="float: right;">';
      print 
strftime('%d %B %Y'$row->date);
echo 
'</span>';
      echo 
nl2br("\n"); 

Moving to CSS forum.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Feb 6th, 2008, 18:51
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: space problem

its ok, but it is not aligned next to the title, it is now aligned to the right below the title

Quote:
testing the title spacespacespacespacespacespacespacespacespacespace spacespacespacespacespace23spacespacespacespacespa ce 23 January 2008
i need it like this

Quote:
testing the title spacespacespacespacepacespacesspacespace23 January 2008
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Feb 6th, 2008 at 18:57.
Reply With Quote
  #4 (permalink)  
Old Feb 6th, 2008, 19:45
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: space problem

do i really have to put it into a table ??

PLEASE HELP !!
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #5 (permalink)  
Old Feb 6th, 2008, 19:54
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: space problem

Maybe text-align: center property?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Feb 6th, 2008, 20:10
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: space problem

ok, i have managed to use this to give me the same results you had

PHP: Select all

{
echo 
'<hr></hr>';
      echo 
'<div class="split">';
      print  
$row->title ;
      echo 
'<div class="split2">';
      print 
strftime('%d %B %Y'$row->date);
      echo 
'</div></div>';
      echo 
nl2br("\n");
      echo 
nl2br("\n");
      print 
$row->blog_mes;


and also included this

Code: Select all
<style type="text/css">
<!--
#split {
    float:left;
}
#split2 {
    float:right;
}
-->
now maybe the css buffs can help with the split

p.s text-align: center does not work
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)

Last edited by saltedm8; Feb 6th, 2008 at 20:20.
Reply With Quote
  #7 (permalink)  
Old Feb 6th, 2008, 20:44
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: space problem

its ok i have solved it with this

PHP: Select all

{
echo 
'<hr></hr>';
      echo 
'<div class="split">';
      print  
$row->title ;
      echo 
'</div><div class="split2">';
      print 
strftime('%d %B %Y'$row->date);
      echo 
'</div>';
      echo 
nl2br("\n");
      echo 
nl2br("\n");
      print 
$row->blog_mes;


and this

Code: Select all
}
.split {
    float:left;
    width:260px;
}
.split2 {
    float:left;
    width:104px;
}
thanks for your help, great ideas, just had to mess about a bit

<SOLVED>
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ie6 white space under div AndrewChip Web Page Design 1 Jun 11th, 2008 13:15
Big white space mikemay123 Web Page Design 5 Nov 6th, 2007 00:30
PM Space JacobHaug Webforumz Cafe 12 Oct 1st, 2007 02:47
PR4-5 Sites / Ad Space webdesigner Link Building and Link Sales 2 Aug 20th, 2006 03:07
Problem with IE , Firefox displays website fine (blank space issue) eksquall Web Page Design 6 Jul 29th, 2006 17:52


All times are GMT. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43