Home >Web Front-end >HTML Tutorial >How to display numbers in the upper right corner of the image with a tag_html/css_WEB-ITnose

How to display numbers in the upper right corner of the image with a tag_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:163035browse

As shown in the picture: I want to display numbers in the upper right corner of the cart
The code is as follows



.headerButton
{
position: relative;
float: right;
padding-right: 50px;
font-size: 20px;
}

.headerButton a.but-on{
background: url(../../img/ShoppingCart2. png) #FFF no-repeat 10px center;
padding-left:50px;
color:#1351b4;
}


Reply to the discussion (solved Solution)

Write another span in headerButton...use absolute positioning. . .

You can put an a tag in a div but not in

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn