Team members are not displayed correctly

4 replies·opened Feb 6, 2017
V
vanikalapcievFeb 6, 2017

Hi.

I am using the 4 in a row display style for my team members. I am looping the information from the database. There are missing spots on random places thruout the list. In the attachmets there is a screenshot. Bellow is the code:

		<section id="content">

			<div class="content-wrap">

				<div class="container clearfix">

					<div class="row">
		<?php
		include 'functions/db_conn.php';
		
		$stmt = $dbh->prepare ( "SELECT * FROM clani WHERE status = 1 ORDER BY weight DESC" );
		$stmt->execute ();
		$members = $stmt->fetchAll ( PDO::FETCH_ASSOC );
		foreach ( $members as $member ) {
			$ime = $member ['ime'];
			$priimek = $member ['priimek'];
			$vloga = $member ['vloga'];
			$slika = $member ['slika'];
			
			?>
						<div class="col-md-3 col-sm-6 bottommargin">

							<div class="team">
								<div class="team-image">
									<img src="<?php echo $slika; ?>"
										alt="<?php echo $ime." ".$priimek; ?>">
								</div>
								<div class="team-desc">
									<div class="team-title">
										<h4><?php echo $ime." ".$priimek; ?></h4>
										<span><?php echo $vloga;?></span>
									</div>
								</div>
							</div>

						</div>
	<?php
		}
		?>

					</div>

					<div class="clear"></div>

				</div>

			</div>

		</section>
S
SemiColonWebSTAFFFeb 8, 2017

Hello,

We Really Apologize about the Inconvenience caused. Can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

S
SemiColonWebSTAFFFeb 12, 2017

Hello,

Simply replace the following code:

<div class="row">

with this:

<div class="row grid-container clearfix" data-layout="fitRows">

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

V
vanikalapcievFeb 23, 2017

It worked...thank you ;)

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard