[Solved] Find pattern in Html using regex [closed]

try this: preg_match_all(“/(<span>\d{4}<\/span>)/”, $myinput, $myoutput); http://3v4l.org/72ClO please note this does not parse html. it looks for something that starts with <span> then has 4 digits, then </span>. A single space in there, and will fail. use this one to get the 4 digits only preg_match_all(“/<span>(\d{4})<\/span>/”, $myinput, $myoutput); http://3v4l.org/FF4Y9 solved Find pattern in Html using regex … Read more

[Solved] JS code not working because of bad placement

if you want to run a javascript code on finish loading, a best practice is to make a function that is called in the onload method. HTML Code <body onload=”changediv(‘2’);”> <div id=”1″>11111111111 1111111111111 111111111</div> <div id=”2″>222222c 2222222222222 22222222</div> <div id=”3″>23333333 3 333 3 3 3 3 3 33333 3</div> <div id=”4″>4444 4 4 44444 4 … Read more

[Solved] HTML5 for c# Web Browser [closed]

I’ll try to answer your question by assuming you’re asking about the WebBrowser class. If you’re trying to say that you used a WebBrowser class to read HTML pages but it doesn’t read HTML5 pages, it could be because your IE version doesn’t support HTML5. Did you install IE9? WebBrowser simply wraps the IE installed … Read more

[Solved] Container not wrapping the content [closed]

Ok now I get what want to achive. To wrap it and center horizontally (I assume you want to do it) you need to margin: 0 auto; to .container NOTE: there will not be any scroll horizontal because of position: fixed; TIP: If you create css do tree of selectors in this case .rectangle{} and … Read more

[Solved] prevent users from downloading html site text

It’s not possible. Whatever happens to end up in the client’s browser is already downloaded. You can’t prevent the user to save it on his computer. Even if you were to convert your text to an image, you can’t prevent the client to use an OCR software to retrieve the text. solved prevent users from … Read more

[Solved] How can I give my arrow direction and arrow color in asp.net coolgrid based on information from database?

Try: <span id=”sptrend” runat=”server” class=”<%# String.Format((“{0}{1}”), Eval(“OverallStatusCdClass”), Eval(“OverallTrendCdClass “))%>”></span> if you must inclue ‘arrow‘ or any other string other than in the DB that is hard coded then you can alter String.Format((“{0}{1}”), to be String.Format((“arrow {0}{1}”) Note: I assume that your span is in a databound control.. SELECT OverallStatusCd, OverallTrendCd, CASE WHEN OverallStatusCd = ‘Up’ … Read more

[Solved] send email is not working with bootstrap [duplicate]

I don’t think, this is your full code, but what I can see you have never set $_POST[‘sendemail’] so if(isset($_POST[‘sendemail’])) { will never be true. EDIT Just see the code below, I made 3 comments. <?php // 1. ————-↓ Change sendemail to submit if(isset($_POST[‘submit’])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = … Read more

[Solved] HTML not working

Your code below seems to be working. What I have done is clean up some of your CSS. There is no such thing as border-layout though (so I’ve removed it). function func() { document.getElementById(“paragraph”).innerHTML = document.getElementById(“input”).value; } #input { height: 30px; width: 480px; } #paragraph { color: green; } .mybutton { border-radius: 0px; border: solid … Read more

[Solved] Bootstrap navbar will not function as a sticky navbar, how do i make it work

You can use fixed-top <html> <head> <meta charset=”UTF-8″> <title>fish</title> <link rel=”stylesheet” href=”https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css” integrity=”sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh” crossorigin=”anonymous”> <script src=”https://code.jquery.com/jquery-3.4.1.slim.min.js” integrity=”sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n” crossorigin=”anonymous”></script> <script src=”https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js” integrity=”sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo” crossorigin=”anonymous”></script> <script src=”https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js” integrity=”sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6″ crossorigin=”anonymous”></script> </head> <body> <header> <img> <nav class=”navbar fixed-top navbar-expand-lg navbar-light bg-light”> <a class=”navbar-brand” href=”#”></a> <button class=”navbar-toggler” type=”button” data-toggle=”collapse” data-target=”#navbarNavDropdown” aria-controls=”navbarNavDropdown” aria-expanded=”false” aria-label=”Toggle navigation”> <span class=”navbar-toggler-icon”></span> </button> <div class=”collapse navbar-collapse” id=”navbarNavDropdown”> … Read more

[Solved] how to make smileys emoji in html and css only

Try this, hope you might get some idea how to design emojis. [class^=”emoji”]{ width: 50px; height: 50px; background: #9E9E9E; display: inline-block; border-radius: 5px; position:relative; } .emoji1:before { content: “”; position: absolute; width: 10px; height: 10px; background: #000; border-radius: 25px; left: 10px; top: 10px; } .emoji1:after { content: “”; position: absolute; width: 10px; height: 10px; background: … Read more