Browse Source

min-height on location imgs for longer names

windhamdavid 2 years ago
parent
commit
f5e0894db5
2 changed files with 20 additions and 4 deletions
  1. 18 2
      style.css
  2. 2 2
      taxonomy-location.php

+ 18 - 2
style.css

@@ -37,6 +37,20 @@ Template: enfold
 		padding:0 80px 20px 0 !important;
 		clear:both;
 	}
+	.physician-location {
+		
+	}
+	h5.physician.entry-title {
+		font-size: 13px;
+		max-width:128px !important;
+	}
+}
+
+
+.physician-location {
+	float:left;
+	padding:0 25px 25px 0;
+	min-height: 220px;
 }
 
 #physicians_search {
@@ -45,7 +59,6 @@ Template: enfold
 	display: table;
 }
 
-
 select#loc {
 	width: 350px;
 }
@@ -90,7 +103,10 @@ color: #0d77bd;
 }
 .physician-image {
 	float:left;
-	padding:0 25px 250px 0;
+	padding:10px 10px 5px;
+}
+article.physician_post_type {
+	padding: 0 10px 0 0;
 }
 .physician_post_type h4.a {
 	color:#0d77bd !important;

+ 2 - 2
taxonomy-location.php

@@ -40,12 +40,12 @@
 					<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
 				
 			
-					<article style="float:left;padding:0 25px 25px 0;" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+					<article class="physician-location" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 				
 						<?php srh_post_thumbnail();?>
 				
 						<header class="entry-header"
-							<a href="<?php the_permalink(); ?>" ><?php the_title( '<h5 class="entry-title">', '</h5>' ); ?></a>
+							<a href="<?php the_permalink(); ?>" ><?php the_title( '<h5 class="physician entry-title">', '</h5>' ); ?></a>
 						</header><!-- .entry-header -->
 
 						<div class="entry-content">