User Profile

Collapse

Profile Sidebar

Collapse
aelisenko
aelisenko
Last Activity: Nov 26 '11, 07:44 PM
Joined: Oct 23 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aelisenko
    replied to horizontal menu not centered
    I suggest just using:

    Code:
    <div id="menu01o">
      <a href="#">Link 1</a>
      <a href="#">Link 2</a>
      <a href="#">Link 3</a>
      <a href="#">Link 4</a>
      <a href="#">Link 5</a>
    </div>
    and then changing css to:

    Code:
        #menu01o {
    ...
    See more | Go to post

    Leave a comment:


  • aelisenko
    replied to Drop down list using CSS
    If you're looking for a CSS drop-down menu a simple version would be like this:

    HTML:

    Code:
    <ul>
    
      <li>Menu Link 1</li>
      <li>Menu Link 2</li>
      <li class="menu-parent">Menu Link 3
      
        <ul class="menu-child">
        
          <li>Sub Menu Link 1</li>
          <li>Sub Menu Link 2</li>
    ...
    See more | Go to post

    Leave a comment:


  • aelisenko
    replied to How do I make the div tags inline?
    You could also add the display:inline-block; to the css rules and give them a fixed width.

    Code:
    .tab-unselected, .tab-selected{
    display:inline-block;
    width: 100px;
    border: 1px solid #f00;
    margin: 0 4px 0 0;
    }
    floating sometimes makes it harder to position other elements if you're not familiar with how it works.
    See more | Go to post

    Leave a comment:


  • Sounds like its either a css conflict or improper markup, could you post the rest of your html and css?
    See more | Go to post

    Leave a comment:


  • aelisenko
    replied to horizontal menu not centered
    If I understood correctly, you want to center the horizontal menu within the parent div (#menu01o). adding text-align:center; should do it.

    Code:
    #menu01o {
    text-align:center;
    width: 100%;
    font: 80% Arial, Helvetica, sans-serif; 
    }
    quick question.. is there a reason you're using a list? having just the anchor tags would give the same result with less html and less css. just food for thoug...
    See more | Go to post

    Leave a comment:


  • aelisenko
    replied to PHP Email Script - Need advice
    in PHP
    Here is another way you could set this up which I prefer but I know its a personal choice.

    Also, I comments 2 parts that im not sure of.

    #1: what are these fields supposed to be? are they supposed to be coming from the POST data from the form?

    #2: the original foreach loop, overwrote $body with each iteration, im not sure why you want to loop through the fields but if you do and want to append to the $body variable,...
    See more | Go to post

    Leave a comment:


  • Code:
    <?php
    
    $planet = 1000;                         //set mass of planet
    $min_mass = 25;                         //set min mass requirement
    $max_mass = $planet/4;                  //set max total mass for all moons
    $moons = round(($max_mass/$min_mass));  //max moon count... not really but not more than this.
    
    
    for($i = 0; $i <= $moons; $i++){
      
      //set moon mass
      $moon = $min_mass
    ...
    See more | Go to post
    Last edited by Dormilich; Oct 23 '11, 07:25 AM. Reason: please use [CODE] [/CODE] tags when posting code

    Leave a comment:

No activity results to display
Show More
Working...