How to use css to hide H1?

SpaceshipSpaceship
Watch

kerenlow

New Member
Impact
0
Hello,

how to use css to hide the ugly big font H1? Anyone can provide the code here? Thanks alot.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
what do you mean hide it?

if you use
Code:
h1{

visibility:none;

}

that will completely hide the h1 content.

to change the font, use font-family, font-size etc
 
0
•••
Hmm I mean to make the font don't look so big by using css.

Thanks for the code I think I know what to do next.
 
0
•••
h1 {font: 500 12px arial, verdana;}

{bold size font-type}

If you want to use the same style sheet but have different h1 on other pages.

h1.example {font: 500 12px arial, verdana;}

h1.differ {font: 800 15px tahoma;}

<h1 class="example">Header</h1>

<h1 class="differ">Different Header</h1>
 
0
•••
putting your font in pixels is a bad idea though
 
0
•••
please explain why...

edit* never mind - internet explorer doesn't allow users to change text size if pixels are declared. What is the best option to use instead of pixels?
 
Last edited:
0
•••
em works well. and to retain the pixel sizing you're familiar with, try this:

body {font-size:62.5%}

"From now on it’s easy to think in pixels but still set sizes in terms of ems: 1em is 10px, 0.8em is 8px, 1.6em is 16px, etc."
 
0
•••
either setting a height via a %/em, or pt
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Payment Flexibility
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back