User Profile

Collapse

Profile Sidebar

Collapse
mickey0
mickey0
Last Activity: Dec 3 '11, 12:37 AM
Joined: Jan 17 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mickey0
    replied to [css] margin-top on body tag
    Hello,
    if I set the border of the body, it works. Is it a good thing to set the border? I actually don't need it...however, I had few go and this seems working:
    Code:
    		html { background: yellow;  }
    		body { 
    	 		background: gray; 						
    			margin:0; 									
    			height: 100%; 
    			position: absolute; top:0; left:0;
    			width: 100%;
    		}		
    		
    
    		#mainblock { background: purple;
    ...
    See more | Go to post

    Leave a comment:


  • mickey0
    started a topic [css] margin-top on body tag

    [css] margin-top on body tag

    Hi,
    I can't understand how manage the body tag. I wrote this below and to avoid a "white" space between the body tag and the top edge, I had to use margin:-top: -10px; Is it normal?
    Moreover, it seems that changing the margin-top of block1, it moves down the entire 'body'. So why can't set e.g. to '10' the margin of 'block1' ?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    ...
    See more | Go to post

  • <img> tag within <a>: css behaviour and background

    Hello,
    I'm trying to put these images in line without any spaces surround. I wrote this piece of code and I'd like to understand why that code has that behaviour. Why the the <img> is not within the <a> element??
    Any good links to this point will be very appreciated. Thanks.
    http://www.2shared.com/photo/sMP1mE2I/followus.html

    Code:
    #followus {
    	clear: left;	
    	float: right;
    	width: 300px;
    ...
    See more | Go to post

  • mickey0
    started a topic positioning div within another div (a footer)

    positioning div within another div (a footer)

    Hello,
    I put a footer in my page:
    Code:
    <div id="footer">
    		<div id="left">
    			left
    		</div>
    		<div id="right">
    			right
    		</div>
    </div>
    </body>
    
    div#footer {	
    	width:100%;
    	border: dotted 2px;
    	position: absolute;
    	bottom:0; 	
    }
    and two part...
    See more | Go to post

  • mickey0
    replied to css and active link
    not sure of having understood what you mean; the point is that:
    Code:
    <a id="activelink" href="#">HOME</a>
    remains always active, even when I select another button (another <a>). How can I deselect it when I select another <a>?
    hope clearer now.....
    See more | Go to post

    Leave a comment:


  • mickey0
    started a topic css and active link

    css and active link

    Hello,
    I did throuhg CSS a navigation menu. It seems fine; as you can see I set the 'current' page as 'active'. When I click on a link (button) the background changes colour. The problem is the the background of the 'activeLink' remains 'active'; How can I avoid this last? Can I do it by means of CSS or maybe do I need JS to accomplish this?
    Thanks in advance
    Code:
    div#menu a:link, div#menu a:visited { 	
    	background-color:
    ...
    See more | Go to post

  • mickey0
    started a topic float: left

    float: left

    Hello,
    I followed this example that "should" working (not to me):
    http://lau.csi.it/realizzare/accessibilita/fogli_di_stile/position/completo.htm ]float[/URL]
    and I wrote my css:
    Code:
    body { background-color: white; color: black; padding: 10px;  }
    div.footer {   
    	padding: 0.5em;
    	color: white;
    	background-color: gray;
    	clear: left;
    	border: Solid 2px;
    ...
    See more | Go to post

  • mickey0
    started a topic putting 2 div besides

    putting 2 div besides

    Hello,
    I have a central <div> which has width:70%; so there are 2 blank columns on left and right. I'd like to put on the left blank colum the css image validator; but I would like that it will be centered within the left column, like this:
    Code:
    .MAIN { 
    	background-color: #C0C0C0; 
    	width: 70%;		
    	margin:0px auto;
    	padding: 0px;    
    	border: 2px;
    	border-style: double;
     }
    ...
    See more | Go to post

  • mickey0
    replied to horizontal menu not centered
    The boxes are still spaced but putting "margin: -0.3em;" within #menu01o a:link, #menu01o a:visited{ .. } instead "margin: 0px", it seems working...Still a problem: the top of this "row" of boxes overlaps with the bottom of a table....
    See more | Go to post

    Leave a comment:


  • mickey0
    replied to horizontal menu not centered
    Apparently it doens't work; but I take "float:left " off, it works.
    However, in this way there is space between thes "boxes" and they are not stuck (and I want them stuck):
    Code:
    #menu01o a:link, #menu01o a:visited{
       /* float: left; */
       ..............
    }
    No reason for using lists; I'll try just the <a>
    See more | Go to post

    Leave a comment:


  • mickey0
    started a topic horizontal menu not centered

    horizontal menu not centered

    Hello,
    I tried this code online but I'm not able to center it on my own page. It stays on the left. How is it possibile to do it? And even how can I put it on the right? Thanks a million.
    Code:
    <div id="menu01o">
     <ul>
      <li><a href="#">Link 1</a></li>
      <li><a href="#">Link 2</a></li>
      <li><a href="#">Link
    ...
    See more | Go to post

  • mickey0
    started a topic problem on a partition after typing 'chkdsk /r'

    problem on a partition after typing 'chkdsk /r'

    Hello,
    since Partition Magic wasn't able (due to some errors like #1608) to resize a partition, I type checkdsk /f to fix them; now the partition is no longer visible; what can I do to recover the partition? The partition seems still alive (its files as well) but its icon disappeared.

    thnks.

    EDIT:
    I solved apparently it with Partition Magic; the letters of the Drive was disappered; I assign to it the letter...
    See more | Go to post

  • mickey0
    started a topic HasSet vs ArrayList and modelling issue
    in Java

    HasSet vs ArrayList and modelling issue

    Hello,

    I must implement a class MyMethod; read a method declaration from a file with a parser, and while parsing I must fill that MyMethod Object.

    Now, at the moment this my objects are in this fashion:
    Code:
    //allow me all public to reduce code verbosity
    class MyMethod {
               public Signature s;
               public  String returnedType;
    }
    class MySignature {
    ...
    See more | Go to post

  • mickey0
    started a topic String.replace
    in Java

    String.replace

    Hello,
    is there any change, having a String to replace within it all occurence of "[" and "]" ?

    this work mystring.replac e("[", "") ;

    but I dont' know how do it for more than one character.
    thanks.
    See more | Go to post

  • mickey0
    started a topic override equals and hash code
    in Java

    override equals and hash code

    Hello,
    my situation is this below; not sure about what override; I guess I must override 'Point'; In general, do I need to override Object1 as well?

    Code:
    class Figure {
      public Set<Point> points = new HashSet<Point>();
    }
    
    class Point {
      String name;
      public List<Object1> coll = new ArrayList<Object1>();
    }
    
    class Object1  {
    ...
    See more | Go to post

  • mickey0
    replied to exception
    in Java
    no I meant exceptions inside.
    See more | Go to post

    Leave a comment:


  • mickey0
    started a topic exception
    in Java

    exception

    Hello,
    is there somebody that know where I could find the explaination about the implementation of the exception in Java? (even in C#)? links? Books?
    thanks
    See more | Go to post

  • mickey0
    replied to println whitespace
    in Java
    yes, but in that way I can't see I cood get the opposite:
    Code:
    Hello
     Hello
       Hello
    See more | Go to post

    Leave a comment:


  • mickey0
    replied to println whitespace
    in Java
    sorry, I was lloking for something general to do this and hopefully work around with the "printf"; in fact what about if I needed the opposite?
    Code:
    Hello!
     Hello!
      Hello!
       Hello!
    Thanks
    See more | Go to post

    Leave a comment:


  • mickey0
    started a topic println whitespace
    in Java

    println whitespace

    Hello,
    is there any chance to do it in a fashion way?
    Code:
    for (int i=5; i >= 0; i--) {
      System.out.prinln( space*i + "Hello world!");
    }
    I want get this:
    Code:
         Hello world!
       Hello world!
      Hello world!
     Hello world!
    Hello world!
    thanks
    See more | Go to post
No activity results to display
Show More
Working...