mrm's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
34 (0.05 per day)
Joined:
30-January 13
Profile Views:
405
Last Active:
User is offline Oct 26 2014 02:56 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   mrm has not set their status

Posts I've Made

  1. In Topic: Sorting a 2d array

    Posted 26 Oct 2014

    Ok there was an empty line at the end of my text file. I took that out and there is no more error. Yet I am still not getting a sorted list. How can I get it to sort by the last number?

    Ok so I got it to sort with,

    edge.sort(lambda x, y: cmp(x[2],y[2]))
    
    


    Can someone explain why this worked and the other methods didn't? Because the other methods seem to be the more popular ones.
  2. In Topic: Sorting a 2d array

    Posted 26 Oct 2014

    Also, even if I try to sort by the first or second elements it still throws an index out of range error.
  3. In Topic: How to center overlayed elements.

    Posted 22 Aug 2014

    We were talking about the tags themselves not the content. So that should have been understandable.

    Anyways. I have just added a background the to table itself in the html and tiresomely worked the numbers of widths, heights, columns and rows to allow the positioning of the words and pictures to fit on the background image just right. I got rid of the CSS altogether.

    <!-- HTML -->
    <table align="center" background="image.png" >
     <tr>
      <td>
      </td>
     </tr>
    </table>
    
    
    
  4. In Topic: How to center overlayed elements.

    Posted 22 Aug 2014

    I have tried it both ways.

    /*CSS*/
    table{}
    
    

    and
    /*CSS*/
    #form{}
    
    <!--html -->
    <div id="form"
    
    


    And they both have the same results.

    View Postandrewsw, on 22 August 2014 - 04:13 PM, said:

    My suggestion was to use the image as background to the "form" div, not the table within it.
  5. In Topic: How to center overlayed elements.

    Posted 22 Aug 2014

    As I understand you are referring to something like this

    CSS
    table{position: relative;
    		margin-top: 100px ;
    		margin-bottom: 100px;
    		margin-right: 100px;
    		margin-left: 100px;
    		background: image.png;
    		background-position: center;
    		}
    
    


    Unfortunately the margins do not extend the image area, just extends margins from page edges.
    Please correct me if I understood wrong.


    View Postandrewsw, on 22 August 2014 - 02:52 PM, said:

    Having set the image as background you could use either padding on the div or margins on the table. What is not elegant about that? It is much better than introducing extra elements just to achieve a layout-effect.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

mrm hasn't added any friends yet.

Comments

mrm has no profile comments yet. Why not say hello?