• 复制链接
  • 分享至QQ
  • 分享至QQ空间
  • 分享至微博
  • 微信扫一扫

Nekomusume

Invalid Date

如果我们能知道过去的一切,就能知道未来⏳......

智力值

0

金币

0

粉丝

0

Nekomusume

Invalid Date

如果我们能知道过去的一切,就能知道未来⏳......

智力值

0

金币

0

粉丝

0

  • Home
  • Wiki
  • Circles
  • Shop
  • English
    Trading
  • Circle Home
  • Encyclopedia
  • Questions
  • Posts
  • Help Center
  • About Manitori
  • Issues
  • Privacy Policy
HomeQuestions

Questions in

Ask question

全部

内容 2|
NekomusumeNekomusume
|
6 months ago
|
Question

center h1 in the middle of screen(示例提问)

How can I center horizontally and vertically a text? I don't want to use position absolute because I try with it and my other div getting worse. Is there another way to do that ?div { height: 400px; width: 800px; background: red; }<div> <h1>This is title</h1> </div>

css
html
text-align
210
1 answer
NekomusumeNekomusume
|
a year ago
|
Question

Vertically aligning CSS :before and :after content(Example question)

I am trying to centre the link with the image, but can't seem to move the content vertically in any way.<h4>More Information</h4> <a href="#" class="pdf">File Name</a>The icon is 22 x 22px.pdf { font-size: 12px; } .pdf:before { padding:0 5px 0 0; content: url(../img/icon/pdf_small.png); } .pdf:after { content: " ( .pdf )"; font-size: 10px; } .pdf:hover:after { color: #000; }

css-content
css
960
2 answers
全部
Frontend

Frontend

分享

This circle is for discussion of techniques about HTML, CSS, and JavaScript, including various frontend frameworks.

Created at2024-08-21 21:05
Members2
⭕

Founder

RicciflowsRicciflows

Master

RicciflowsRicciflows