Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Macotti

@Macotti
About
Posts
9
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • while (true) and for (; ; ) [modified]
    M Macotti

    I never got to use it in production but i used it once in my undergraduate thesis. I was working with artificial neural networks simulations and I couldn't find any way on how to determine how long it will take a particular ANN to learn. So I kept the loop going until the error was lower than that of the maximum allowed. I had no choice, the iteration can go from a few thousands to millions.

    The Lounge hosting cloud question

  • F1 for help in VS
    M Macotti

    I so agree. The one above was rather poor.

    The Lounge visual-studio csharp performance help announcement

  • What's With h1, h2 ? ? ? [modified]
    M Macotti

    Can I see your code? I tried creating a test page using the style in your first post like this. I'm only assuming that you did it somewhat like this.

    CSS Test Page
    .test h1,h2,h3,h4,h5,h6 {
    font-style: italic;
    }

    .test h1,h3,h5 {
    color: red
    }
    .test h2,h4,h6 {
    color: maroon;
    }

    <h1 class="test">Header 1</h1>
    <h2>Header 2</h2>
    <h3>Header 3</h3>
    <h4>Header 4</h4>
    <h5>Header 5</h5>
    <h6>Header 6</h6>

    Everything went as expected. Since styles with the syntax

    <classname> <element>
    {
    /*styles here*/
    }

    requires the element to be inside another element with the stated class. Like

    <div class="test">
    <!--
    the element to adopt the style from the previous declaration
    -->
    </div>

    h2 was italicized though. your problem was it was not italicized right? the color red for h1 and color maroon for h2 did not apply as expected. you said you encountered no problem when you put it inside

    <div class="test"></div>

    right? try creating another set of headers outside the "div" tags and you will encounter the problem again. I've been working with CSS for quite a while now. I'm just really curious about this. whatever you might have in mind about this, i'll be glad for a reply. :)

    Web Development help css design algorithms question

  • What's With h1, h2 ? ? ? [modified]
    M Macotti

    Oh I see. Stupid me. Weird indeed. Unless of course the styles were overridden somewhere.

    Web Development help css design algorithms question

  • PHP File Open and Reading character by character
    M Macotti

    I see, it was a resource indeed. I think he also tried to replace the spaces with a comma but did it the other way around. The comma (if there was any) was replaced by spaces then he used explode with comma as a delimiter.

    Linux, Apache, MySQL, PHP php help

  • What's With h1, h2 ? ? ? [modified]
    M Macotti

    ".test h1" means h1 INSIDE another element with a class equal to "test". Maybe you were expecting your style to work with headings outside of that element with the "class=test". Subsequent headings did not encounter the problem because there were no constraints, that is they did not have to be inside the said element to adapt the style.

    Web Development help css design algorithms question

  • PHP File Open and Reading character by character
    M Macotti

    I think this is what happened. You misused the str_replace() function. If you will check the documentation for it. What you actually did was find an occurrence of "," and replace it with " " and then you searched for "," on your explode(). The character no longer exists by then. Try interchanging the first two arguments of your str_replace(). I think that should do.

    Linux, Apache, MySQL, PHP php help

  • PHP File Open and Reading character by character
    M Macotti

    $output should turn into an array after the explode() right? i think something else is wrong.

    Linux, Apache, MySQL, PHP php help

  • Login
    M Macotti

    First of all where do you want to store your login information? Websites over the internet obviously use a database but you can actually store it in a file if it will be a really simple login. Storing and retrieving information from those storages differ. Also, where are you running your PHP scripts? Do you use XAMPP, WAMPP, etc.? They could be helpful if you're planning to do the "database" approach.

    Linux, Apache, MySQL, PHP php help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups