[Solved] Copy header style from another site

So i tried Modifying the code and change the background to red and it works fine. i think the path of your image is the problem .main{ width: 100%; position: relative; } header{ text-align: center; margin: 0 auto; overflow: hidden; position: relative; } .bg{ background:red; width: 2560px; height: 1354px; background-size: 2560px 1354px; background-repeat: no-repeat; position: … Read more

[Solved] Colour a button blue, with help of css [closed]

This should do .html with CSS <style> #moderationbuttons .buttonlist ul.nav { list-style-type:none; } #moderationbuttons .button_strip_0 { padding:5px; background-color: #0874d1; color: #fff; border-radius: 4px } </style> <div id=”moderationbuttons”> <div class=”buttonlist floatbottom” id=”moderationbuttons_strip”> <ul class=”nav nav-pills”> <li> <a class=”button_strip_0″> <i class=”fa fa-0 fa-fw”></i> Hello </a> </li> </ul> </div> </div> 6 solved Colour a button blue, with help … Read more

[Solved] How to highlight the menu item in menu

I guess what you want is to have class ul.pureCssMenuSelected { //whatever the selection should look like } Then, in each html page you go to, you add that class to the option the page refers too. <ul class=”pureCssMenu pureCssMenum”> <li class=”pureCssMenui0″><a class=”pureCssMenui0 pureCssMenuSelected” href=”#”>Home</a></li> <li class=”pureCssMenui0″><a class=”pureCssMenui0″ href=”#”>About us</a></li> <li class=”pureCssMenui0″><a class=”pureCssMenui0″ href=”#”>FAQ</a></li> <li … Read more

[Solved] How do you repeat similar elements multiple times with different content using Bootstrap?

Use JavaScript to create multiple HTML elements with the same classList. It’s now up to you to adapt this for your context: const $root = document.getElementById(‘root’) const data = [“foo”, “bar”, “naz”] for (var i = 0; i < data.length; i++) { var newEl = document.createElement(‘p’) newEl.classList=”data-item” newEl.innerText = data[i] $root.appendChild(newEl) } .data-item { font-family: … Read more

[Solved] Folded banner using css and border and fade [closed]

Can be done with psuedo-elements. jsFiddle Demo div::before { content: “”; position: absolute; height: 0; width: 0; right: 0; bottom: -12px; border-bottom: 10px solid transparent; border-left: 10px solid #AA0000; } solved Folded banner using css and border and fade [closed]

[Solved] Code refactoring HTML [closed]

If the question is “How to target all the text inputs in my budget div”, then that could be done like this: #buget input[type=text] { /* insert style here */ } That would marginally simplify your HTML to: <div id=”budget” style=”display:none;”> <input type=”text” name=”total_budget” placeholder=”Total project budget targets”/> <input type=”text” name=”annual_budget” placeholder=”Annual budget targets”/> <input … Read more

[Solved] Buttons should Inherit parent div width [closed]

You can simply use flex by adding display:flex to container and then set flex:1 to buttons. You need to also set position:relative on the main container since you are using position:absolute. .pro-box { height: 416px; overflow-y: hidden; padding: 6px 6px 0 6px; background-color: #4dbaef; color: #fff; position:relative; } .pro-box>img { display: block; margin: 0 auto; … Read more

[Solved] How to make an image a span’s background

Like this? <div class=”console”> <span>my text is written here</span> </div> CSS: .console {width:400px;height:300px;background-image: url(“https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQbF9b1wVlFVXLu-j4YvG9sb3521x09Nsbj65iBWpMA1chqM2RwsQ”);background-size:cover;} .console span {display:block;padding:70px;} 1 solved How to make an image a span’s background

[Solved] Browser specific css for Internet Explorer [duplicate]

Load the css_gen.css file first and then load the css_IE.css file. <link rel=”stylesheet” type=”text/css” href=”https://stackoverflow.com/css_gen.css”> <!–[if IE 6]> <link rel=”stylesheet” type=”text/css” href=”http://stackoverflow.com/css_IE.css”> <![endif]–> Hope that solves your problem. And try this too http://css-tricks.com/how-to-create-an-ie-only-stylesheet/ solved Browser specific css for Internet Explorer [duplicate]