Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
196 views
in Technique[技术] by (71.8m points)

html - Navigation bar located on image slider not working when I am adding text to a image. How can I fix it?

In my text code, the below CSS style is not working. What is missing?

.text2 {
    position:absolute;
    bottom: 30px;
    right:200px;
    padding-left: 200px;
    padding-right: 20px; 
    text-align: center;
    padding-bottom:20%;
    color: white;
    padding-top: 6000px;
    font-size: 300px;
    left: 20px;

  }
question from:https://stackoverflow.com/questions/66063303/navigation-bar-located-on-image-slider-not-working-when-i-am-adding-text-to-a-im

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

try make sure that the parent element has the position: relative , also make sure that the background has different color than white as the text color is white.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...