Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

How to use css to hide H1?

Namecheap AuctionsNamecheap Auctions
Spacemail by SpaceshipSpacemail by Spaceship
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.
GoDaddyGoDaddy
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
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back