Jelajahi Sumber

News layout change

Md Mozahidur Rahman 1 tahun lalu
induk
melakukan
ab0996f1ed
2 mengubah file dengan 9 tambahan dan 7 penghapusan
  1. 8 5
      css/theme-styles.css
  2. 1 2
      header.php

+ 8 - 5
css/theme-styles.css

@@ -144,6 +144,8 @@ section#first-nav-section nav {
 section#first-nav-section nav ul {
   align-items: center;
   z-index: 3;
+  margin-top: 0!important;
+    margin-bottom: 0!important;
 }
 section#first-nav-section nav ul img {
   height: 50px;
@@ -545,10 +547,12 @@ section#second-nav-section .second-nav-active {
 }
 
 .news-big-img-text {
-  text-align: left;
-  margin-left: 20px;
-  transform: translateY(-100px);
+    text-align: left;
+    left: 20px;
+    position: absolute;
+    bottom: 0;
 }
+
 .news-big-img-text h4 {
   color: #fff;
   font-size: 14px;
@@ -1760,8 +1764,7 @@ body.archive aside#secondary{
 }
 .news-big-img {
     width: calc(50% - 25px);
-    /* gap: 25px; */
-    /* height: max-content; */
+    position: relative;
 }
 .news-small-img {
     margin-bottom: 0!important;

+ 1 - 2
header.php

@@ -31,8 +31,7 @@
 			<section id="first-nav-section">
 				<nav id="first-nav" class="container-fluid">
 					<ul>
-						<img src="<?php echo (get_header_image()); ?>" alt="<?php echo (get_bloginfo('title')); ?>" />
-
+						<a href="<?php echo get_site_url(); ?>"> <img src="<?php echo (get_header_image()); ?>" alt="<?php echo (get_bloginfo('title')); ?>" /></a>
 						<li><a><span onclick="openNav()">About</span></a></li>
 						<li><a><span onclick="openNav()">Admission</span></a></li>