Page 1 of 1
poster image position
Posted: Mon Dec 27, 2010 5:35 pm
by VZdemon
i'm tryng to create a forum and in the repliea section i want each replie to look like this:

but i can't get the image to move next to the post. does any1 have any idea how to do this? (i use div tages and a seperate style sheet).
Re: poster image position
Posted: Mon Dec 27, 2010 11:45 pm
by Jackolantern
Here is a wonderful tutorial on using the CSS "float" attribute. Float will allow you to move content side-by-side within your reply div.
Was this what you were looking for, or were you having problems with float already?
Re: poster image position
Posted: Tue Dec 28, 2010 2:44 pm
by VZdemon
Re: poster image position
Posted: Tue Dec 28, 2010 3:37 pm
by VZdemon
say, do you also have a tutorial for separating data from a text value in mysql?
if you don't undersatnd what i mean then here is what i'm trying to get:
//in the database
1,2,3
// what i want to display from that value
1
2
3
Re: poster image position
Posted: Tue Dec 28, 2010 3:55 pm
by hallsofvallhalla
http://php.net/manual/en/function.split.php
Code: Select all
$data = "1,2,3";
$splitdata = split(',', $data);
echo $splitdata[0];
echo $splitdata[1];
echo $splitdata[2];
Re: poster image position
Posted: Tue Dec 28, 2010 6:09 pm
by VZdemon
thanks every1 for all your help. you guys are awsome