[Solved] How to design a table like this

Use this cord… <table border =”1″> <tr> <td colspan =”5″>Text</td> <tr> <td colspan =”3″></td> <td></td> <td></td> </tr> <tr> <td rowspan =”6″></td> <td>1</td> <td></td> <td></td> <td></td> </tr> <tr> <td>2</td> <td></td> <td></td> <td></td> </tr> <tr> <td>3</td> <td></td> <td></td> <td></td> </tr> <tr> <td>4</td> <td></td> <td></td> <td></td> </tr> <tr> <td>5</td> <td></td> <td></td> <td></td> </tr> <tr> <td>6</td> <td></td> <td></td> <td></td> … Read more

[Solved] How could I make a calendar? [closed]

javascript date object is pretty handy. You can do something like this to get current dates of the current month: const today = new Date() const date = new Date() date.setDate(1) var calendar=”” for(var i = 0; i < 31; i++) { if(date.getMonth() == today.getMonth()) { calendar += `<div onclick=”openModal()”>${date.getDate()}</div> ` } } This is … Read more

[Solved] Set width on div

If I’m understanding, try something like that: .text_box { text-align: center; width: 495px; margin: 0 auto;} and .button { border: 2px solid #04fbc7; padding-top: 33px; padding-bottom: 35px; padding-left: 120px; padding-right: 120px; font-weight: 600; font-size: 18px; letter-spacing: 0.100em; display: block;} Note that in the .button is like display: block; because by default the ancor tag <a … Read more

[Solved] How to add a black shadow on top of a div block with background image?

<style> .image{ background-image:url(https://www.w3schools.com/w3images/natureboy.jpg); background-size:cover; width:200px; height:200px; cursor:pointer; } .blackLayer{ width:100%; height:100%; background-color:#000; opacity:0.5; } .blackLayer:hover{ opacity:0; } </style> <div class=”image”> <div class=”blackLayer”></div> </div> solved How to add a black shadow on top of a div block with background image?

[Solved] Is it possible to arrange divs to form a horizontal nav menu?

1) instead of display: inline; try display: inline-block; 2) Instead of trying to make a UL horizontal, why not use <div> tags instead? Set the <div>s to display: inline-block, and you should be able to get the horizontal list you’re describing. <div class=”container”> <div style=”display:inline-block;”> <h2>This is heading ?</h2> <p><a href=”https://stackoverflow.com/questions/29724118/?”>This is link ?</a></p> </div> … Read more

[Solved] Center horizontally absolute div in another floating div [closed]

These are the css elements you need to change: .right { width: 200px; height: 100%; background-color: green; float: right; position: relative; //here } .messageWrapper { overflow: hidden; bottom: 0; max-height: 100%; min-height: 20px; width: 170px; text-align: center; //here width: 100%; //here position: absolute; //here } .message { min-height: 20px; background-color: yellow; margin-left: auto; //here margin-right: … Read more

[Solved] How do I change the “design” of a ? [closed]

Simple. <div style=”background-color:YOUR_COLOR; width:YOUR_WIDTH; margin:MARGIN;”>TEXT</div> Uses: background-color is your background-color. You can also use color for text color. Refer to colors here. width is your chosen width for the div. You can also use px at the end of the number to define pixels length. Refer to a tutorial here margin is defining the margin … Read more

[Solved] Materialize css input range [duplicate]

When working with position: relative; the way the object in question is positioned is indeed relative to page margins of your document or relevant container. So for example, of you had a header that you wanted to be positioned in the upper left hand corner of the screen, then the code may look something like … Read more

[Solved] How to write conditional css?

Here I used the sibling selector ~. div { height: 30px; } .div1 { background: red; } .div2 { background: blue; } .div1:hover ~ .div2 { background: yellow; } <div class=”div1″></div> <div class=”div2″></div> If there would be more than 1 div2 and you only want the first immediate use the adjacent sibling selector + div … Read more

[Solved] How do I float this div straightly? [closed]

By align, I assume you mean float. If you look at their markup, you’ll see that they’re using Bootstrap and the alignment is handled using its in-built Grid System, for example: <div class=”row”> <div class=”col-sm-4 col-lg-4 column”></div> <div class=”col-sm-4 col-lg-4 column”></div> <div class=”col-sm-4 col-lg-4 column”></div> </div> 16 solved How do I float this div straightly? … Read more

[Solved] HTML stylize a div like a rounded edge label

.btn{ border-radius:25%/100%; border:1px solid #000; background:#fff; padding: 8px 15px; font-size:14px; } .btn span{ font-size:10px; padding-left:5px; } <button class=”btn”>sometext <span>X<span> </button> solved HTML stylize a div like a rounded edge label