Jump to content

D4rkH0rse

Members
  • Posts

    8
  • Joined

  • Last visited

D4rkH0rse's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I must be an idiot for having missed that. I read through the documentation earlier and didn't noticed it.
  2. The problem is that a google search results in mostly matrial on how to do it when you are using it as a plugin for WP or Joomla.
  3. I know it's possible but I can not find out how. I would like to highlight one line of code, for example line 5 in the following snippet. <?php// De te verwerken code$source = '{printf("hello, worldn");}';// De taal $language = 'c';// Een nieuw object$geshi = new GeSHi($source, $language);// Gebruik lijnnummering en startnummer.$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);$geshi->start_line_numbers_at(4);// Schrijf naar het beeldschermecho $geshi->parse_code();?> Does any of you know a trick how to do this?
  4. You could just add a CSS class to all titles. CSS: .titleClass{padding:5px;} HTML: <p class="titleClass">Your title</p><img src="images/menu_icon.png"> It will probably require some CSS rules for the image as well and maybe some more on the text for you to get it to work how you want to. But there is nothing better than experimenting to learn right?
  5. No idea what you are exactly trying but did you attempt this? <div id="title_bar"> title<img src="images/menu_icon.png"></div> Giving them both their own div container is the same as placing them in 2 boxes that are lined-up next to each other for as far as I understood from the bit of reading on HTML and CSS I've done so far. You could then play with the distance between the text by altering the padding from the text (right) or the image(left).
  6. D4rkH0rse

    Menu

    Got it to work. Just let me know if this was the correct fix, if possible. <div class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <!-- Geeft de naam van de website weer. --> <a href="#" class="navbar-brand">Tech Site</a> <!-- Knop welke zichtbaar wordt op kleine schermen om het menu te openen en sluiten. --> <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> I added the div with the class .navbar-header.
  7. D4rkH0rse

    Menu

    I am having some trouble getting my menu to work correctly. When I press the open menu button the menu items do not appear underneath each other. Instead they seem to line up in the navbar horizontally. This is my code: <!DOCTYPE html><html> <head> <title>Bootstrap 3</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/stijling.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!-- Geeft de naam van de website weer. --> <a href="#" class="navbar-brand">Tech Site</a> <!-- Knop welke zichtbaar wordt op kleine schermen om het menu te openen en sluiten. --> <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <!-- Het navigatie menu --> <div class="collapse navbar-collapse navHeaderCollapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Home</a></li> </ul> </div> </div> <div> <!-- JQuery --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Bootstrap --> <script src="js/bootstrap.min.js"></script> </body></html>
  8. I am keeping my fingers crossed that one of you out there can help me. So I have been searching several hours to figure out how I can best display mathematical formulas in webpages. My search led me to MathJax. There the first problem revealed itself. Tex does not seem to be supported in IE. Neither can I get MatML to work. Just a note I only tried in IE and Chrome. Then I read about AsciiMath, so I gave that a try. That one I could not get to work in IE or in Chrome (later found out it only works in Firefox). What I understood from some reading IE used to support it, however from version 9 or 10 they dropped it. So..... (drumbeat), my question is. What is the best way to display mathematical formulas in webpages. I read that PHP has a method of changing formulas into images. But I have no clue if this would reflect badly in SEO etc. Kind regards.
×
×
  • Create New...