asasass
September 8, 2017, 2:17am
1
Code:
<style>
html,body {
height: 100%;
padding: 0;
margin: 0;
}
body {
background-color: #000000;
background-image: url("https://i.imgur.com/DUY2xq9.png");
background-repeat: no-repeat;
background-position: center center;
}
.outer {
display: table;
height: 100%;
margin: 0 auto;
}
.tcell {
display: table-cell;
vertical-align: middle;
text-align: center;
}
p {
font-style: normal;
font-size: 10vw;
font-family: georgia;
margin-top: 0;
margin-bottom: 0;
border: 1px solid blue;
padding: 5px;
}
/* unvisited link */
a:link {
color: blue;
text-decoration: none;
outline: 0;
}
/* visited link */
a:visited {
color: blue;
text-decoration: none;
outline: 0;
}
/* mouse over link */
a:hover {
color: blue;
text-decoration: none;
outline: 0;
}
/* selected link */
a:active {
color: blue;
text-decoration: none;
outline: 0;
}
</style>
<div class='outer'>
<div class='tcell'>
<p><b><a href="https://www.google.com/" target="_blank">Enter</a></b></p>
</div>
</div>
Try a “background-size” Google search
asasass
September 8, 2017, 2:28am
3
background-size: 686px 645px;
doesn’t do anything, I forgot to mention that.
See:
Image still doesn’t scale.
Did you search and try the cover or contain option?
Did you try validating the script?
https://validator.w3.org
https://jigsaw.w3.org/css-validator/
asasass
September 8, 2017, 2:56am
5
686px converted to a percentage would be what?
A percentage requires two values:
In mathematics, a percentage (from Latin per centum 'by a hundred') is a number or ratio expressed as a fraction of 100. It is often denoted using the percent sign (%), although the abbreviations pct., pct, and sometimes pc are also used. A percentage is a dimensionless number (pure number); it has no unit of measurement.
For example, 45% (read as "forty-five per cent") is equal to the fraction .mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfra...
asasass
September 8, 2017, 3:09am
7
so then, 686px would convert to what?
asasass
September 8, 2017, 3:17am
9
There was a web site @ronpat showed me that did conversions, but I forget what site that was.
Try searching this forum for the following:
@ronpat convert scale image
Try these:
100% auto
auto 100%
Unfortunately I am using a tablet and cannot try them.
ronpat
September 8, 2017, 5:43am
14
asasass:
I forget how I do this.
To solve a percent problem, one needs to know the two (2) values that are being compared. So, the question is: 390px is being compared to what other width value to arrive at a percent. Until you know the two values being compared, you cannot calculate the third (It’s a division then multiplication problem.)
value A
------- X 100 = percent value
value B
2 Likes
system
Closed
December 8, 2017, 12:43pm
15
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.