969
Solutions
1K
Contributors
Mobile web development, also known as responsive web design, is an approach to web design aimed at crafting sites to provide an optimal viewing and interaction experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones). A site designed with RWD adapts the layout to the viewing environment by using fluid, proportion-based grids, flexible images, and CSS3 media queries.
Sign up to Post
Load Recent Content
<label id="cbx-label">
<select>
<option>xxx</option>
<option>xxx</option>
<option>xxx</option>
<option>xxx</option>
</select>
</label>
I used following css to 'replace' the select button with a custom image:#cbx-label::after{
vertical-align: middle;
background-color: #eee;
color: #000;
content:url(../sat_images/select2.png);
display: inline-block;
height: 18px;
margin-left: -55px;
pointer-events: none;
width: 17px;
}
The code works fine on computer and Android devices, as you can see in this screenshot:0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@2.14.12
3 info using node@v4.2.6
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart server@1.0.0
6 info start server@1.0.0
7 verbose unsafe-perm in lifecycle true
8 verbose stack Error: spawn ENOMEM
8 verbose stack at exports._errnoException (util.js:870:11)
8 verbose stack at ChildProcess.spawn (internal/child_process.js:298:11)
8 verbose stack at exports.spawn (child_process.js:362:9)
8 verbose stack at spawn (/usr/lib/node_modules/npm/lib/utils/spawn.js:7:13)
8 verbose stack at runCmd_ (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:208:14)
8 verbose stack at runCmd (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:173:5)
8 verbose stack at runPackageLifecycle (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:135:3)
8 verbose stack at Array.<anonymous>
…
<div id="buttons">
<button id="submit" disabled>Note</button>
<button id="cancel">Cancel</button>
</div>
#buttons :first-child {
float: none;
width: 50%;
line-height: 2em;
}
<div id="buttons">
<button id="submit" disabled>Create Note</button>
<button id="cancel">Cancel</button>
</div>
#buttons {
margin-top: 18px;
overflow: hidden;
}
#buttons :first-child {
float: right;
}
#buttons :nth-child(2) {
margin-right: 15px;
float: right;
padding: 10px 25px;
}
button {
background: rgba(10, 190, 81, 1);
padding: 10px 25px;
border: none;
color: #fff;
cursor: pointer;
border-radius: 4px;
outline: none;
}
#buttons :first-child {
float: none;
}
#buttons :nth-child(2) {
float: none
}
#buttons {
text-align: center;
}
969
Solutions
1K
Contributors
Mobile web development, also known as responsive web design, is an approach to web design aimed at crafting sites to provide an optimal viewing and interaction experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones). A site designed with RWD adapts the layout to the viewing environment by using fluid, proportion-based grids, flexible images, and CSS3 media queries.