Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. This might be a little easier to understand. See links internal to code or https://htmldog.com/techniques/pullquotes/. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Pull quotes 1</title> <!-- 2 Examples of PullQuote displays From: https://htmldog.com/techniques/pullquotes/ --> <!-- // style> body { font: 13px/1.5 arial, helvetica, sans-serif; } article { width: 500px; } .pquote { float: left; /* or right; */ width: 100px; background: #ddf; font-weight: bold; padding: 13px; margin: 0 13px 13px 0; } blockquote { margin: 0; } </style --> <style> body { font: 13px/1.5 arial, helvetica, sans-serif; } article { width: 500px; } .pquote { float: left; width: 200px; background: url(/examples/images/openquote.gif) top left no-repeat; color: #030; font-size: 26px; line-height: 0.9; font-style: italic; padding: 13px; } blockquote { margin: 0; } .pquote p:first-letter { font-size: 39px; font-weight: bold; } </style> </head> <body> <article> <p>If ever there was evidence of God, the humble pea is it.</p> <p>Mother Nature has never created something of such perfection, something that takes Darwin's theory of evolution to the extent that a natural element can, over millions of years, evolve into something so flawless.</p> <aside class="pquote"> <blockquote> <p>It is not an exaggeration to say that peas can be described as nothing less than perfect spheres of joy.</p> </blockquote> </aside> <p>The green seed of the white-flowering climbing leguminous papilionaceous plant, pisum sativum, has become a dining-table favourite for good reason.</p> <p>The perfect accompaniment to any meal, the diminutive spherical vegetable brings joy to billions worldwide, be they fresh, frozen, canned or dried.</p> <p>Even leaving aside the astounding nutritional package, the taste explosion and texture of a well cooked pea is undeniably enough to award this deceptively simple seed the gold-medal of the foodstuff Olympics.</p> <p>There is debate surrounding the tampering of the form of the original spherical vegetable. The question as to whether the 'mushy' pea is sacrilege or an innovative approach to re-package the perfect product is a sensitive issue. A similar argument arises when approaching the relatively new craze of mangetout. In-depth study is required, but for now it is too early to assess the true importance of this baby pea pod. </p> <p>In its original form, the pea is a giant amongst food products and a deity of the vegetable world. It is not an exaggeration to say that peas can be described as nothing less than perfect spheres of joy.</p> </article> <!-- Link back to HTML Dog: --> <p><a href="http://www.htmldog.com/examples/"><img src="http://www.htmldog.com/badge1.gif" alt="HTML Dog"></a></p> </body> </html>
  3. Today
  4. Can you provide a brief example of your problem that can be viewed without downloading files?
  5. From the manual: u (PCRE_UTF8) This modifier turns on additional functionality of PCRE that is incompatible with Perl. Pattern and subject strings are treated as UTF-8. An invalid subject will cause the preg_* function to match nothing; an invalid pattern will trigger an error of level E_WARNING. Five and six octet UTF-8 sequences are regarded as invalid since PHP 5.3.4 (resp. PCRE 7.3 2007-08-28); formerly those have been regarded as valid UTF-8.
  6. Not sure what kind of sorcery is this, but it works now. Thank you!
  7. Add the u modifier to your pattern: /[^A-Za-z0-9!\"#%£&()=@\s]/u
  8. There's not enough code there to suggest much. What does the form look like? What data is sent in $_POST?
  9. <form role="search" id="searchform siq_searchForm" action="/search" method="get" class="radius-xl"> ??????? The console shows 4 errors and 1 warning, 1 error with undefined '$' and possible misplaced '}', unless you fix these it's unlikely any corrected code will work as it should.
  10. I tried it like this: jQuery('#search > form > .input-group > input[type="search"]').focus(); }); Still no luck.
  11. Original string returns 2 unicode blocks (straight from $_GET): �(194) �(164). Where ¤ is.
  12. Its the wrong way round, img selector top that becomes default (without !important), .logo below will make it have precedence over just img selector.
  13. In a webpage I have the following HTML code: <img class="logo" src=....>...</img> with the corresponding CSS: .logo { width: 12rem; .... } img { width: auto !important; ... } As you can see there are two somehow contradicting width values. Ok, since the width in IMG has an !important postfix it has a higher priority. And this is the problem. How can I disable the width value/key in IMG CSS specification and let the width value for .logo become active? How can I delete a CSS key? Since "auto" is already the default value overwriting it with the default value makes no sense. I have no access to the original html/CSS code but must apply it afterwards Thank you Peter
  14. Jayteez

    Panel Problems

    Thanks Ingolme Its all new to me so struggling to make sense of it all.
  15. Ingolme

    Panel Problems

    If window and document are not defined, either you're not running this code in a browser or you've overwritten the window and document objects. "$" not defined would usually be caused by not including jQuery, or by having loaded jQuery further down the document than your code.
  16. Hello, You can give multiple styles using semicolons(;) to a single element. Following is the example of the same as an inline CSS. <h1 style="color:blue; text-align:center"> Your Text </h1> In case you want to apply internal CSS then your code will be as follows: <h1 id="header1">Your Text</h1> #header1 { color:blue; text-align:center }
  17. I am using the W3 schools code to make a panel that slides open at the bottom of my webpage for a uni assignment due tonight and I keep getting error messages in the Javascript saying "ERROR document is not defined "window is not defined " "$ is not defined". can any one help with this?
  18. what i am asking is a inserting multiple values of looped table, above is is just inserting the last value of looped table
  19. What about the original string? Is the 194 part of a code point that only gets partially replaced?
  20. Yesterday
  21. 8OO

    Accordion Issue

    Got it! I'll make sure to do that then. Hopefully I won't have any more issues with any more things I would like to take from W3. Once again, thanks @justsomeguy and @dsonesuk, your help on this has been truly appreciated!
  22. The unicode block symbol returned value of 194 via ord() function, got any idea what might be the cause to create that unicode block? Source code of tester below, string too. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> #kool { width:800px; border:groove; margin:0 auto; padding:25px; } .mid { margin:0 auto; max-width:800px; text-align:centeR; margin-top:10px; } #preg_input { width:300px; } </style> </head> <body> <?php /* Test preg_replace function */ // #%&()=@£\$€\[\]_\-,.:? $basic = "A-Za-Z0-9"; $preg_pattern = "/[^A-Za-z0-9!\"#%£&()=@\s]/"; $func_preg_replace = preg_replace($preg_pattern,"",$_GET['preg']); if (isset($_GET['preg'])) { echo "<div id='kool'>"; echo "<b>Original string: </b> " . $_GET['preg']; echo "<hr>"; echo "<b>Preg pattern: </b> " . $preg_pattern; echo "<hr>"; echo "<b>Result: </b> " . $func_preg_replace; echo "<hr>"; echo "<b>Rawurl: </b> " . rawurlencode($_GET['preg']); echo "<hr>"; echo "<b>Ord: </b> "; for ($i=0;$i<strlen($func_preg_replace);$i++) { echo $func_preg_replace[$i] . "(" . ord($func_preg_replace[$i]) . ") "; } echo "</div>"; } ?> <div class="mid"> <form method="get" action="preg_test.php"> <input type="text" id="preg_input" name="preg" <?php if (isset($_GET['preg'])) { echo " value='" . $_GET['preg'] . "'"; } ?>> <input type="submit"> </form> </div> </body> </html> And the string without What is love 0-9, Specialcharacters: !"#¤%&/()=? Does it reproduce for you guys? ---- Also tried to UTF-8 encode string via php, the preg_replace string, 2 new unicode blocks appeared with �(195) �(130). $func_preg_replace = utf8_encode ($func_preg_replace);
  23. Thank you Funce ! I will study this until I understand every 'jot and tittle' . You moved me to start a Folder for w3schools-Examples . http://vmars.us/w3schools-Examples/Draggable-Div-Elements-w3Schools-FUNCE.html Thanks again
  24. <form role="search" id="searchform siq_searchForm" action="/search" method="get" class="radius-xl"><div class="input-group"> <input id="searchbar" value="" name="s" type="search" placeholder="Type to search" autofocus="autofocus" /> <span class="input-group-btn"><button type="button" class="search-btn"><i class="fa fa-search"></i></button></span></div> </form> jQuery('#search > form > input[type="search"]').focus(); }); input with type="search" does not directly follow form elelment , a div with "input-group" class is before it, so it is first direct child it is not input type search so focus is not applied. '>' is first direct child, not including any children of that child.
  25. You can use a case expression: https://docs.oracle.com/cd/B19306_01/server.102/b14200/expressions004.htm SELECT CASE bool_field WHEN 0 THEN 'No' ELSE 'Yes' END ...
  26. Thanks for the replies! Well, autofocus="autofocus" attribute is working in Chrome but not FF or Edge. I found some info on others having the same issue, but am having a hard time getting any solution to work for me. Ugh!
  27. I have site http://www.kaprifol.com beeing edited for several years with SitooWeb a sort of editing and publishing tool. Now the project in SitooWeb is corrupt but The site is still working but I feel the need for cleaning up html pages from irrelevant coding. Enclosed please find a sample file Heim.html renamed to Heim.html.txt Appreciate advise or best availability of a tool helping me out in this matter Heim.html.txt
  1. Load more activity
×
×
  • Create New...