[Solved] HTML css jquery

[ad_1] There are many ways to target .item for example using :first-of-type if this doesn’t work or it selects more than desired then you need to add more code. $(“.product-slider-inner>.item:first-of-type”).addClass(“active”); .item.active { color: red; font-size: 120%; font-style: italic; } <script src=”https://code.jquery.com/jquery-1.10.2.js”></script> <div class=”carousel-inner product-slider-inner”> <?php while($featurepro = mysqli_fetch_assoc($featurequery)): ?> <div class=”item”>Something <div class=”col-md-2 col-sm-6 col-xs-12 … Read more

[Solved] Prevent tags being used in

[ad_1] You Can Use The htmlentities <?php $comments = “A ‘quote’ is &lt;b&gt;bold&lt;/b&gt;”; echo “<textarea>”.htmlentities($comments ).”</textarea>”; ?> DEMO:: http://phpfiddle.org/main/code/n0sf-b7ka You Can Also Do This. if (isset($_POST[“submit”]) && !empty($_POST[“comments”])) { $comments = $_POST[“comments”]; echo “<textarea>”.htmlentities( $comments ).”</textarea>”; } [ad_2] solved Prevent tags being used in

[Solved] One sided circle div [closed]

[ad_1] You can use border-top-left-radius and border-bottom-left-radius: div { height: 200px; width: 600px; border-top-left-radius: 100px; border-bottom-left-radius: 100px; background: black; } <div></div> 2 [ad_2] solved One sided circle div [closed]

[Solved] Why doesn’t my scrollbar work? [closed]

[ad_1] I checked both website just add the below code after center tag also close it from your working link to non working link it will work <main id=”top-nav”> and remove this from above center tag <div style=”overflow:scroll”> 1 [ad_2] solved Why doesn’t my scrollbar work? [closed]

[Solved] Correction the code [closed]

[ad_1] I think you want something like this? <?php if(!empty($_POST[‘D1’]) && !empty($_POST[‘T1’])){ $providers = array( ‘google_drive’ => ‘https://drive.google.com/file/d/{replace}/view’, ‘clody’ => ‘https://www.cloudy.ec/embed.php?id={replace}’ ); if(isset($providers[$_POST[‘D1’]])){ $url = str_replace(‘{replace}’, $_POST[‘T1’], $providers[$_POST[‘D1’]]); echo “Your url is $url”; } } ?> <form method=”POST” action=<?php ($_SERVER[“PHP_SELF”]); ?>> <p>chose url: <select size=”1″ name=”D1″> <option value=”google_drive”>google drive</option> <option value=”clody”>clody</option> </select> <input type=”text” name=”T1″ … Read more

[Solved] Change link URL to a different link depending on the page

[ad_1] Try something along the lines of this… $(document).ready(function() { var url = window.location.href; var UrlofpageX = url.indexOf(‘theurlyouwanttolookfor’); if (UrlofpageX >= 0) { $(‘.yourlink’).append(‘<a href=”https://website-B”><li>Your different link</li></a>’); } else { $(‘.yourlink’).append(‘<a href=”https://website-A”><li>Your original link</li></a>’); } }); So what happens here is you get the URL of the page that you’re currently on. It gets stored … Read more

[Solved] Two column width 50% css [closed]

[ad_1] Demo html <div class=”div1″>Left div</div> <div class=”div2″>Right div</div> css body, html { width: 100%; height: 100%; margin:0; padding:0; } .div1 { width: 50%; float: left; background: #ccc; height: 100%; } .div2 { width: 50%; float: right; background: #aaa; height: 100%; } [ad_2] solved Two column width 50% css [closed]

[Solved] Why is my code’s ‘e’ not defined?

[ad_1] Not are clean to me what you are trying to do in e function, but I build this example for help you: var red = document.getElementById(“colorRed”) , blue = document.getElementById(“colorBlue”); //document.write(red); function e(){ if(blue.checked == true){ document.write(“You prefer Blue”); } else if (red.checked == true){ document.write(“You prefer Red”); } else { document.write(“You prefer nothing”); … Read more

[Solved] How to use css Counter Increment [closed]

[ad_1] Try giving the specific paragraph a class or id like shown below: <p class=”counterParagraph”>This is a paragraph</p> and editing your css p.counterParagraph::before{ content: counter(my-counter) “.” counter(subsection) “.” ; counter-increment: subsection; color: red; margin-right: 5px; } 0 [ad_2] solved How to use css Counter Increment [closed]

[Solved] I want to make a notification error if one of field is empty

[ad_1] You can valid each field of your form and show errors according them. For Example PHP COde <?php $userError=””; if(isset($_POST[‘input1’]) && !empty($_POST[‘input1’])){ //First assign some variables to posted variables like $fullname = $_POST[“input1”]; $email = = $_POST[“input2”]; $password = = $_POST[“input3”]; //CHECK FULLNAME IS EMPTY if($fullname == “”) { echo “Please Enter your Name … Read more

[Solved] How to Vertical align text in div

[ad_1] I have 2 solutions: 1- Use display:table-cell; vertical-align: middle 2- Use position:absolute; transform:translateY(-50%);top:50% .relative{position:relative;height:300px} .middle{position:absolute;top:50%;transform:translateY(-50%)} <div class=”relative”> <div class=”middle”> <h1>Middle</h1> </div> </div> [ad_2] solved How to Vertical align text in div