[Solved] css plus to close button

There is no need to use javascript or keyframes to do that. I feel like your codepen is complicated for not much! Here is your code, modified, with my comments: body { font-family: sans-serif; } .btn-square { width: 100px; height: 100px; background-color: blue; transition: background-color 1s; /* Added */ } .close { position: relative; display: … Read more

[Solved] How to center multiple divs in other div vertically and horizontally with multiple lines of divs made by clear: both?

Why not wrap each set of letters (word) in its own div? Not sure what you’re trying to achieve really, give us a bit more to go on. EDIT. Added code example after, for clarity. <div> <span>w</span> <span>o</span> <span>r</span> <span>d</span> </div> <div> <span>p</span> <span>l</span> <span>a</span> <span>y</span> </div> 2 solved How to center multiple divs in … Read more

[Solved] Add Close-Icon to embeded Youtube-Video [closed]

You can simply do this with jquery , see an example below : $(function(){ $(“.closeBtn”).click(function(){ $($(this).data(“target”)).fadeOut(500); }); }); .closeBtn { position: absolute; cursor: pointer; top: 5px; left: 5px; z-index: 999999; } <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script> <div id=”v1″> <div class=”closeBtn” data-target=”#v1″><img src=”http://downloadicons.net/sites/default/files/delete–delete-icon-32231.png” width=”30″ height=”30″ /></div> <iframe width=”932″ height=”510″ src=”https://www.youtube.com/embed/v5dU-dG9epY” frameborder=”0″ allowfullscreen></iframe> </div> solved Add Close-Icon to embeded Youtube-Video … Read more

[Solved] Does onclick work with any positioning? [closed]

Absolute positioning has no effect on how the onClick event is being fired. You are simply positioning your element below another element, so another element is blocking the mouse event Try adding to your CSS: #cogdiv { z-index: 9999; //or greater, or 1. Just make sure it’s bigger than the overlapping element’s z-index } Reading … Read more

[Solved] Setting min and max font size for a fixed-width text div that accepts variable text [closed]

Add an event listener to some changing property and then change the font size accordingly. document.getElementById(“testInput”).addEventListener(“keyup”, function(){ var inputText = document.getElementById(“testInput”).value; document.getElementById(“test”).innerHTML = inputText; if(inputText.length > 10){ document.getElementById(“test”).style.fontSize = “8px”; }else if(inputText.length > 5){ document.getElementById(“test”).style.fontSize = “10px”; }else{ document.getElementById(“test”).style.fontSize = “12px”; } }); <input id=”testInput”> <div id=”test”></div> 1 solved Setting min and max font size … Read more

[Solved] How to create form slider with 5 values [closed]

You can use jquery selecttoUIslider component. This component takes the select form elements and generates a jquery UI Slider element. Here is an example from page. Markup <select name=”optiontype” id=”idselect”> <option value=”Economy”>Economy</option> <option value=”Value”>Value</option> <option value=”Average” selected=”selected”>Average</option> <option value=”Splurge a little”>Splurge a little</option> <option value=”Luxury”>Luxury</option> </select> Javascript $(‘#idselect’).selectToUISlider(); You can check the demo page here … Read more

[Solved] Search form slow show [html] [closed]

To create such an effect you add a transition property for the width and the color of the input field. When the field has focus you simply change the width and color. .animated-input { background: #000; border: none; border-radius: 5px; width: 40px; transition: width 1s, background 1s; } .animated-input:focus { background: #fff; width: 200px; } … Read more

[Solved] How to grey out part of a form? [closed]

Thanks for improving your question. One approach you could take is to add a class to each professor option which indicates which majorID it’s associated with like this: <div class=”form-div”> <h3><label for=”prof”> Then Select Professor: </label> <br></h3> <select class=”form-input” id=”prof” name=”prof”> <?php foreach ($professors as $prof) { ?> <option class=”major-<?php echo $prof[‘majorID’]; ?>” value=”<?php echo … Read more

[Solved] CSS with input checkbox [closed]

You just need to use the example on the Bootstrap website <link href=”https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css” rel=”stylesheet”/> <div class=”form-check form-check-inline”> <input class=”form-check-input” type=”checkbox” id=”dedup” value=”1″> <label class=”form-check-label” for=”dedup”>deduplication</label> </div> 2 solved CSS with input checkbox [closed]

[Solved] CSS3 – box with notification bubble [closed]

Try this: CSS: .outer{ width: 100px; height: 100px; border: 1px solid black; background: url(http://us.123rf.com/400wm/400/400/prolific/prolific1206/prolific120600020/14161811-pencil–edit–icon.jpg); background-size: 100px 100px; } .num_notifs { border-radius: 5px; width: 50%; margin-left: 25%; margin-top: 2px; background: #00b7ea; /* Old browsers */ background: -moz-linear-gradient(top, #00b7ea 0%, #0052bf 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#0052bf)); /* Chrome,Safari4+ */ background: … Read more