Web Design Forum: Layout differs - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Layout differs Rate Topic: -----

#1 User is offline   paulseer 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 12-January 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:I'm Learning

Posted 12 January 2009 - 01:02 PM

Hi all hope someone can help, a website I am working on looks fine to me but others have reported layout problems that I simply cannot see in either IE (vs7) or Firefox, the website is www.psychicandtarotreadings.co.uk and the first thing people report is that the top banner love & relationships is not centered (it is on mine) then menu item "about us" the text runs over to the right and is hidden. I am using a Joomla template and everything looks fine, my screen res is set at 1024 x 768

Hope someone can help herE

Cheers
Paul
0

#2 User is offline   mr p 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 325
  • Joined: 09-December 08
  • Reputation: 6
  • Gender:Male
  • Location:London
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 12 January 2009 - 01:50 PM

try sticking a width on the top banner (equal to the image width) and add margin: 0 auto...

#bannerarea {
width: ???px;
margin: 0 auto;
}


you've got it floated left at the moment, so delete that, add the code above, and it should centre.
0

#3 User is offline   paulseer 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 12-January 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:I'm Learning

Posted 12 January 2009 - 02:16 PM

Ok thanks, using joomla do you know what file that would be in, sorry a lot of this is done in admin. Def a problem with my browser I think though, several people I have asked have said the text on various pages runs off the page or under stuff, I can't see it in either ie or firefox, most strange.
0

#4 User is offline   paulseer 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 12-January 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:I'm Learning

Posted 12 January 2009 - 02:21 PM

Think it might be mod_banners.php heres the code but usure where to put the code



<?php
/**
* @version $Id: mod_banners.php 6087 2006-12-24 18:59:57Z robs $
* @package Joomla
* @copyright Copyright © 2005 Open Source Matters. All rights reserved.
* @license [url="http://www.gnu.org/copyleft/gpl.html"]http://www.gnu.org/copyleft/gpl.html[/url] GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

// clientids must be an integer
$clientids = $params->get( 'banner_cids', '' );

$banner = null;

$where = '';
if ( $clientids != '' ) {
	$clientidsArray = explode( ',', $clientids );
	mosArrayToInts( $clientidsArray );
	$where = "\n AND ( cid=" . implode( " OR cid=", $clientidsArray ) . " )";
}

$query = "SELECT *"
. "\n FROM #__banner"
. "\n WHERE showBanner=1 "
. $where
;
$database->setQuery( $query );
$banners = $database->loadObjectList();
$numrows = count( $banners );

$bannum = 0;
if ($numrows > 1) {
    $numrows--;
	mt_srand( (double) microtime()*1000000 );
	$bannum = mt_rand( 0, $numrows );
}

if ($numrows){
	$banner = $banners[$bannum];

	$query = "UPDATE #__banner"
	. "\n SET impmade = impmade + 1"
	. "\n WHERE bid = " . (int) $banner->bid
	;
	$database->setQuery( $query );
	if(!$database->query()) {
		echo $database->stderr( true );
		return;
	}
	$banner->impmade++;

	if ($numrows > 0) {
		// Check if this impression is the last one and print the banner
		if ($banner->imptotal == $banner->impmade) {

			$query = "INSERT INTO #__bannerfinish ( cid, type, name, impressions, clicks, imageurl, datestart, dateend )"
			. "\n VALUES ( " . (int) $banner->cid . ", " . $database->Quote( $banner->type ) . ", "
			. $database->Quote( $banner->name ) . ", " . (int) $banner->impmade . ", " . (int) $banner->clicks
			. ", " . $database->Quote( $banner->imageurl ) . ", " . $database->Quote( $banner->date ) . ", 'now()' )"
			;
			$database->setQuery($query);
			if(!$database->query()) {
				die($database->stderr(true));
			}

			$query = "DELETE FROM #__banner"
			. "\n WHERE bid = " . (int) $banner->bid
			;
			$database->setQuery($query);
			if(!$database->query()) {
				die($database->stderr(true));
			}
		}

		if (trim( $banner->custombannercode )) {
			echo $banner->custombannercode;
		} else if (eregi( "(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$", $banner->imageurl )) {
			$imageurl 	= $mosConfig_live_site .'/images/banners/'. $banner->imageurl;
			$link		= sefRelToAbs( 'index.php?option=com_banners&amp;task=click&amp;bid='. $banner->bid );
			if( !defined('_BANNER_ALT') ) DEFINE('_BANNER_ALT','Advertisement');
			echo '<a href="'. $link .'" target="_blank"><img src="'. $imageurl .'" border="0" alt="Advertisement" /></a>';

		} else if (eregi("\.swf$", $banner->imageurl)) {
			$imageurl 	= "$mosConfig_live_site/images/banners/".$banner->imageurl;
			echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" border=\"5\">
					<param name=\"movie\" value=\"$imageurl\"><embed src=\"$imageurl\" loop=\"false\" pluginspage=\"http://www.macromedia.com/go/get/flashplayer\" type=\"application/x-shockwave-flash\"></embed></object>";
		}
	}
} else {
	echo "&nbsp;";
}
?>

0

#5 User is offline   mr p 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 325
  • Joined: 09-December 08
  • Reputation: 6
  • Gender:Male
  • Location:London
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 12 January 2009 - 08:06 PM

it's in your css stylesheet...

http://psychicandtarotreadings.co.uk/templ...ss/template.css
0

#6 User is offline   paulseer 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 12-January 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:I'm Learning

Posted 12 January 2009 - 11:02 PM

Ok thanks, but any ideas why the layout looks worng to everyone else but me, changed the template and now the featured readers (top right column on my browser) is apparently sitting underneath the main text to everyone else?

Thanks
Paul
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users