How to Remove Top HR Line? - html

I have an HR tag underneath a header; I noticed that there are actually two lines (one underneath the header and another one above it) when I only want one line underneath the header.
How can I remove the top line and keep only the bottom underline? The top line is not only unnecessary, but it messes up the website's look..
<div class="about-us-text">
<hr> <h1>We Create </h1> <hr>
<h3>PLACES THAT INFLUENCE</h3>
<p>We design places that creates a compelling, communal, environmental, and cultural impact on individuals and communities.</p>
<h3>PLACES THAT INSPIRE</h3>
<p>We design places that encourage an impassioned and spiritual connection. We regard design to be contextual – responding to its layered history.</p>
<h3>PlACES THAT INFORM</h3>
<p>Our modus operandi leverages the competence of the entire firm to consistently produce well-informed design.</p>
</div>
hr {
margin-top: -12.5px;
width: 14.3rem;
height: 1.5%;
color: black;
background: black;
border-radius: 2px;
}
.what-we-do h1{
padding-top: 80px;
font-family: interstate, sans-serif;
font-weight: 700;
font-size: 48px;
/*-webkit-text-decoration: underline 12px;
text-decoration: underline 12px;
-webkit-text-underline-position: under;
text-underline-position: under;*/
color: #300600;
padding-bottom: 25px;
}
.what-we-do h3{
font-family: interstate, sans-serif;
font-weight: 700;
font-size: 24px;
padding-top: 65px;
color: #300600;
}
.what-we-do p {
padding-top: 50px;
font-family: 'Merriweather Sans', sans-serif;
font-weight: 300;
font-style: normal;
font-size: 18px;
word-spacing: 0.75px;
line-height: 50px;
color: #300600;
}

Give the upper hr a class upperhr then use #media query for your preferred screen size then set display property to none.
.what-we-do{
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 94px;
}
hr {
margin-top: -12.5px;
width: 14.3rem;
height: 1.5%;
color: black;
background: black;
border-radius: 2px;
}
.what-we-do h1{
padding-top: 80px;
font-family: interstate, sans-serif;
font-weight: 700;
font-size: 48px;
/*-webkit-text-decoration: underline 12px;
text-decoration: underline 12px;
-webkit-text-underline-position: under;
text-underline-position: under;*/
color: #300600;
padding-bottom: 25px;
}
.what-we-do h3{
font-family: interstate, sans-serif;
font-weight: 700;
font-size: 24px;
padding-top: 65px;
color: #300600;
}
.what-we-do p {
padding-top: 50px;
font-family: 'Merriweather Sans', sans-serif;
font-weight: 300;
font-style: normal;
font-size: 18px;
word-spacing: 0.75px;
line-height: 50px;
color: #300600;
}
#media only screen and (max-width: 600px){
.upperhr{
display: none;
}
}
<div class="what-we-do">
<div class="about-us-text">
<hr class="upperhr"> <h1>We Create </h1> <hr>
<h3>PLACES THAT INFLUENCE</h3>
<p>We design places that creates a compelling, communal, environmental, and cultural impact on individuals and communities.</p>
<h3>PLACES THAT INSPIRE</h3>
<p>We design places that encourage an impassioned and spiritual connection. We regard design to be contextual – responding to its layered history.</p>
<h3>PlACES THAT INFORM</h3>
<p>Our modus operandi leverages the competence of the entire firm to consistently produce well-informed design.</p>
</div>
</div>

Related

How to make grid div responsive and change style of it in Html Css

I have this kind of grid on my web. I want it to make responsive for mobiles and tablets. I attached the screenshot of what I have now and What I want. Thanks in Advance!
When I check this on my mobile, this happens :(
How can I make it look like this
Here is my source code
.row {
display: flex;
flex-direction: row;
justify-content: center;
}
.box {
width: 20%;
height: auto;
margin-top: 12px;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
position: relative;
text-align: center;
margin: auto;
padding: 16px;
}
.box.big {
width: 40%;
margin-top: 24px;
}
<div class="row">
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw; ">AIRFREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">CHINA & EU to CIS via GYD<br>CHARTERING IN CHINA<br>EU TO GYD & SCO</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">SEA FREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">SEA FREIGHT SERVICES VIA<br>POTI PORT, GE TO ASIA, EU<br>AND AMERICAS</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">ROAD FREIGHT
</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">EU TO CIS VIA SOUTHERN<br>CORRIDOR<br>LTL SERVICES FROM EU</p>
</div>
<div class="box">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">RAIL FREIGHT</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">RAIL FREIGHT BETWEEN<br>AZE TO CIS AND POTI PORT<br>TERMINAL HANDLING IN AZ</p>
</div>
</div>
<div class="row">
<div class="box big">
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 400; margin-top: 8px; font-size: 2.15vw;">VALUE ADDED SERVICES</p>
<p style="font-family: 'Kanit', sans-serif; color: #ffffff; font-weight: 200; font-size: 1.2vw; margin-bottom: 8px;">LTL SERVICES TO CIS<br>RORO / BREAKBULK SERVICES IN CASPIAN<br>VESSEL AGENCY SERVICES<br>CUSTOMS CLEARANCE AND TRANSIT FORMALITIES<br>APPLYING SPECIAL PERMITS & FEASIBILITY STUDY</p>
</div>
</div>
I experimented and got the answer. All i had to do is add some css code. This will help alot)
#media (max-width: 600px) {
.logo{
margin-top: 0;
height: 48px;
}
.row{
margin-top: 80px;
display: flex;
flex-direction: column;
}
.box {
margin:12px;
width: 90%;
padding: 16px;
}
.box.big{
width: 90%;
padding: 16px;
}
.boxTextHeader{
font-size: 5vw;
}
.boxTextDescription{
font-size: 3vw;
}
}
I've changed some html too by adding classes to make it more customizeable. This css is enough to get and idea.

Why I can't change the font size of last h3 only

I'm making a web page containing multiple titles. I have a problem and that is I can't change the font size of h3 (last one) and if I did the whole font sizes of other titles changes too. I want to know why and how to solve this.
This the code
.join_us {
width: 100%;
margin-top: 50px;
}
.join_us h3 {
font-size: 20px;
font-family: 'sans-serif';
font-weight: bold;
text-align: center;
color: #2D2D2D;
}
.join_us .create_account_container {
width: 400px;
height: 60px;
margin-left: auto;
margin-right: auto;
background-color: #0EBA00;
margin-top: 40px;
text-align: center;
}
.join_us .create_account_container a {
text-decoration: none;
line-height: 60px;
font-size: 25px;
font-family: 'sans-serif';
font-weight: bold;
text-align: center;
color: #FFF;
}
.invite_for_use_section h1 {
font-size: 28px;
font-family: 'sans-serif';
color: #000;
font-weight: bold;
text-align: center;
line-height: 40px;
margin-top: 30px;
}
.invite_for_use_section h3 {
font-size: 13px;
font-family: 'sans-serif';
font-weight: bold;
text-align: center;
color: #2D2D2D;
}
<div class="join_us">
<h3>JOIN OVER 10,000 SMART AFFILIATE MARKETERS! GET STARTED NOW...</h3>
<div class="create_account_container">
CREATE MY ACCOUNT
</div>
</div>
<div class="invite_for_use_section">
<h1>
Use Our Secret Tool and Boost Your Commissions Up to 5X More While Cutting Your Workload To Shreds!
</h1>
<br>
<h3>
Over 10,000 (and growing) People Can't Be Wrong!
</h3>
</div>
The page also contain header which contain h1 titles didn't include it because I think it has no relation to this problem.
if you want to change the font size of a specific element, try using id's. You can assign an id to an object, like this:
<h3 id = "over10">
Over 10,000 (and growing) People Can't Be Wrong!
</h3>
And to apply styling to that object, in your CSS, you can simply reference that object with a hashtag (#) with its id name, like this:
#over10 {
font-size: 33px;
font-family: 'Arial';
font-weight: bold;
text-align: center;
color: #2D2D2D;
}
I plugged it into code pen and had no problems changing the font size. The only thing I can think of is that H3 is setting a font size which might be overriding the CSS. Trying using a div instead.
I've fixed it, thnx guys, i changed the h3 to h5 and h4 ,i think css doesn't allow you to make the font size of an h3 bigger than the font of h1...

Div moving around on mobile?

I am finishing a project which is mainly a photo viewer with a short video at the beginning. Over the video there is a title, something very simple like so:
<div id="presentacion">
<h1>PARANA</h1>
<h2>PHOTOGRAPHIES DE MAX RUIZ</h2>
</div>
with a css like so:
#presentacion h1{
font-family: Deser;
font-weight: lighter;
padding: 0;
margin: 0;
margin-right: -.2em;
line-height: 1em;
font-size: 7.5em;
letter-spacing: .35em;
color: white;
}
#presentacion h2{
font-family: Deser;
font-weight: lighter;
letter-spacing: .2em;
padding: 0;
margin: 0;
font-size: 1.8em;
color: white;
}
This looks fine on desktop computers:
http://maxruiz-parana.com
For mobile I have a media queries set up with slightly different css, like so:
#presentacion h1{
font-family: Deser;
font-weight: lighter;
padding: 0;
margin: 0;
margin-right: -.2em;
line-height: 1em;
font-size: 9em;
letter-spacing: .35em;
color: white;
}
#presentacion h2{
font-family: Deser;
font-weight: lighter;
letter-spacing: .2em;
padding: 0;
margin: 0;
font-size: 3.5em;
line-height: 1.3em;
color: white;
}
As you can see, the differences are minimal. Now, if you check the same website on a mobile phone, you will see that the title starts at a completely different place and then snaps into place.
Why is this happening? Any ideas appreciated. Thanks
EDIT-------------------------------------------------------------------
I found that eliminating the following declaration:
html {
position: fixed;}
From my media queries section solved the problem of the title moving, but I do want the html to be fixed for mobile. Any ideas appreciated. Thanks

Bit of paragraph code that's throwing my site positioning off?

I'm stumped about something, a bit of code that every time I place at the bottom of my site throws my site slightly to the right, which makes it jarring when going from that page to another, you can see the nav panel jumping to the right, etc.
I'm an amatuer at this stuff, designing my own artist website. Any suggestions as to why when I place this in. Appreciate any help!
This is the code causing this shifting:
<div class="copyright">
<p>
COPYRIGHT ©2017 WILSON SCHLAMME, ALL RIGHTS RESERVED
</p>
</div>
and this is on the css page: *note removing this css still doesn't alleviate the shifting.
.copyright {
font-size: 51%;
color: #a6a6a6;
letter-spacing:1px;
padding-bottom:20px;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino,
serif;
}
And this is the entire code:
* {
margin: 0;
padding: 0;
}
body {
text-align: center;
/*For IE6 Shenanigans*/
font-family: Verdana, Geneva, sans-serif;
color: black;
}
.bio {
color: #808080;
line-height: 160%;
line-spacing: 40%;
max-width: 700px;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino, serif;
margin: 0 auto;
text-align: left;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
font-size: 48%;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino, serif;
letter-spacing: 2.5px;
word-spacing: 25px;
font-weight: 300;
color: #bfbfbf;
}
#headerimg {
padding-top: 30px;
}
li {
display: inline;
}
.spacer1 {
margin-top: 20px;
}
.spacer2 {
margin-top: 50px;
}
.spacer3 {
margin-top: 50px;
}
.spacer4 {
margin-top: 50px;
}
.infoimg img {
-webkit-box-shadow: 3px 4px 3px #7C7C7C;
box-shadow: 3px 4px 3px #7C7C7C;
min-width: 350px;
display: inline-block;
margin-top: 50px;
border-style: solid;
border-color: gray;
border-width: 1px;
}
a:link {
text-decoration: none;
color: black;
}
a:visited {
text-decoration: none;
}
.copyright {
font-size: 51%;
color: #a6a6a6;
letter-spacing: 1px;
padding-bottom: 20px;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino, serif;
}
a {
color: #a6a6a6;
text-decoration: none;
}
a:hover {
color: black;
text-decoration: none;
cursor: pointer;
}
.speech {
font-size: 100%;
color: #808080;
line-height: 160%;
line-spacing: 40%;
max-width: 700px;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino, serif;
margin: 0 auto;
}
<div id="headerimg">
<img src="img/headerfont2.PNG" style=" width:28%">
</div>
<div class="spacer1">
</div>
<div class="w3-container">
<ul>
<li>VISUAL </li>
<li>INFO</li>
<li>CONTACT</li>
</ul>
</div>
<div class="infoimg">
<img src="img/info.png" style="width:20%">
</div>
<div class="spacer2">
</div>
<div class="bio">
<p>
Wilson Schlamme was born in Jackson Mississippi in 1988. He graduated from the USC School of Cinematic Arts in 2010, focusing his studies on photography and visual design. Finding himself dissatisfied with the medium post college, Wilson shifted his work
into painting, and spent the next several years developing a technique largely derived from fluid based paint and self crafted tools. Wilson currently lives in Los Angeles, where he creates abstract works, continuing the tradition of action painting
and further progressing his organic and overwhelming fluid like style.
</p>
</div>
<div class="spacer3">
</div>
<div class="speech">
<p>
<i>
"While the work ranges in severity, it's structured around a succinct visual
reaction produced from color and textual blending. This reaction shapes not
only the core lines of each piece but is also the vocabulary of the work
itself.
Aggressive blending of this sort (done not with a brush but with a hard
edge), combined with a limited color palette, allows for the viewer to feel
familiar and secure with the work while at the same time in question over
the fervent gestural movements. This polarization of the known yet unknown,
similar yet contrasting, is a circumstance that is shared both with the
viewer and theartist, and likewise becomes a focal point of shared
experience."
</i>
</p>
</div>
<div class="spacer4">
</div>
<div class="copyright">
<p>
COPYRIGHT ©2017 WILSON SCHLAMME, ALL RIGHTS RESERVED
</div>
You can use fixed or absolute positioning. Fixed will keep it on the screen at all times, even during scroll; absolute will scroll:
.copyright {
position: fixed;
bottom: 20px;
font-size: 51%;
color: #a6a6a6;
letter-spacing: 1px;
font-family: "Proxima Nova", Palatino Linotype, Book Antiqua, Palatino, serif;
}
Note: I removed the padding because of fixing the position.
Note: I wasn't getting the shifting either, however, I am not going back and forth between pages.
The style looks good, just be careful of your color contrast. Be sure it passes accessibility standards so people with low vision are able to read your site.

Big height out of nowhere

Somehow one of the group of the same block elements on the picture gets inexplicably big height. Styles shown on the pic don't suggest that kind of behavior for this element. In fact, height isn't even set for those h3's.
Browser screenshot
The html is
<section class="about-us">
<div class="wrapper clearfix">
<h2 class="about-us-heading section-heading red-black-stressing-line-at-left">About Us</h2>
<p class="about-us-statement section-saying about-us-saying">This is who we are - or at least who we strive to be...</p>
<div class="about-more">
<p class="about-saying">If you can't explain it simply, you don't understand it enough.</p>
The more you know
</div>
<div class="about-work-details">
<h3 class="about-details-heading typography-icon">Typography</h3>
<p class="about-details-text">...</p>
</div>
<div class="about-work-details">
<h3 class="about-details-heading curve-with-dots-icon">Full icon set</h3>
<p class="about-details-text">...</p>
</div>
<div class="about-work-details">
<h3 class="about-details-heading triangular-ruler-icon">Accurate</h3>
<p class="about-details-text">...</p>
</div>
</div>
</section>
Three same div.about-work-details elements.
The default css is
.about-us{
background-color: #fff;
position: relative;
}
.about-us-heading{
color: #272d32;
}
.about-us-statement{
color: #4e5860;
margin-bottom: 3.9em;
}
.about-more{
width: 16.875em;
float:left;
margin-right: 1.875em;
}
.about-saying{
font-family: "Open Sans", sans-serif;
font-size: 1.75em;
line-height: 1.4285;
color: #4e5860;
}
.about-more-link{
display: inline-block;
font-family: "Raleway", sans-serif;
line-height: .77;
padding: 1em 2.625em 1em 1.25em;
text-decoration: none;
font-weight: 600;
color: #fff;
text-transform: uppercase;
background: #ff3c1f url(../images/left-arrow.gif) 12.7em .95em no-repeat;
margin-top: 4.25em;
transition: background-color 0.5s;
}
.about-work-details{
width: 16.875em;
float:left;
margin-right: 1.685em;
margin-bottom: 8.1875em;
position: relative;
min-height: 16.875em;
border: 1px solid #edeff2;
}
.about-work-details:last-of-type{
margin-right: 0;
}
.about-details-heading{
font-family: "Open Sans", sans-serif;
font-weight: 700;
font-size: 1.25em;
color: #303030;
text-transform: uppercase;
padding: 0.85em 0 1em 3em;
margin: 1.70em 0 0 1em;
}
Media query modifications
#media screen and (max-width: 860px){
.about-work-details{
width: 70%;
margin: 3em auto;
min-height: 0;
float: none;
}
.about-us{
padding-bottom: 1px;
}
.about-work-details:last-of-type {
margin-right: auto;
}
}
Seems like a floating item behavior issue.
Try removing/commenting float:left; from .about-more.