Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML CSS

CSS to control PHP layout

Questions and tutorials related to Cascading Style Sheets *all versions*

Moderators: macek, egami, gesf

CSS to control PHP layout

Postby PQC » Tue Nov 27, 2012 1:36 am

Hello

I am using perch to install a smiple content on a website for my client. My problem is that the text in the second block (text) is dropped beneath the image. I can't seem to see why this is happening. I have two block of php in a right hand column.

the right hand col. is controled by the following code:

Code: Select all
#rightcol{
   padding-top: 20px;
text-align: left;
 width:220px;
 margin-right: 5px;
 float:right;
 position:relative;
 background-color:#fff;
 }


The first block of php is an image 90 pix x 105 pix the second block of php is the text for the image.

The text is controled by css to display properly in a <div id="txt"> the code for this .txt is:

Code: Select all
.txt{
   padding-left:5px;
   font-size:9px;
   font-weight:bold;
   text-align:left;
   height:90px;
   vertical-align:middle;
}


Can anyone help me please?

Paul
PQC
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Nov 27, 2012 1:19 am

Re: CSS to control PHP layout

Postby PQC » Sun Dec 09, 2012 1:05 pm

Hello

Further to my previouse post. The code on te page is set as:

<div class="txt">
<?php perch_content('New item image 1'); ?>
<?php perch_content('New item 1'); ?>
</div>

is there any way with css to force these two bits of PHP to show on the same line rether than the new item 1 text being forced onto the next line?

Please help.

Paul
PQC
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Nov 27, 2012 1:19 am


Return to CSS

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.