PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 28, 2022

[FIXED] How can I increase the size of background of h1? CSS

 July 28, 2022     css, image     No comments   

Issue

This is the problem I have. I couldn't solve it. I think it's because I've just started learning something and then I tried the make my own little project to practice.

enter image description here


Solution

In your h1 you are setting the padding to be 0 10px, whereas the second value determines the padding for each side of the x-axis. Would you reach your goal if you just set the padding of the h1 to be padding: 10px?

You could possibly add the h1-tag within a parent-container and specify the width and height of that and then center-align the h1.



Answered By - Frikk
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing