#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2002
    Posts
    596
    Rep Power
    23

    css positioning problems


    I have a problem with my css - I have a footer div containing two elements that I want to be aligned left and right and one in the centre, containing images - it seems like this ought to be easy, but I can't get it right!
    Code:
    //css 
    #Bottommenu {
    	padding:10px 5px;
    	background-color:#003498;
    	font:10px verdana, arial, helvetica, sans-serif;
    	color:#fff;
    	width:545px;
    }
    .leftText {
    	float:left;
    	text-align:left;
    	padding-bottom:5px;
    }
    .rightText {
    	float:right;
    	text-align:right;
    }
    #footerIcons {
      	text-align: center;
    	background: transparent;
    	display:inline;
    float:middle;
    }
    
    //html
    
    <div id="Bottommenu">
    	<span class="leftText">
    		
    		<a href="site02.cfm?request=A301" title="Click to browse the text only version of this website" style="color:#fff;">Text only version</a>
    		
    	</span>
    
    	
    			<div id="footerIcons">
    			
    					<a href="site01.cfm?request=A301&subscribe=true" title="Subscribe to updates on this page"><img src="education/images/subscribe.gif" border="0"></a>
    			
    			<a href="site01.cfm?request=A301&quicklink=true" title="Add this page to your homepage quicklinks"><img src="education/images/quicklink.gif" border="0"></a>
    			<a href="site01.cfm?request=A301&print=true&" target="_blank" title="Click for a printable version of this page"><img src="education/images/_print.gif" border="0"></a>
    			
    			</div>
    		
    
    	<span class="rightText"><a href="site01.cfm?request=b1000331" title="Send your feedback" style="color:#fff;">Send your views</a>
    	</span>
    </div>
    the left and right text are oK, but the when I introduce the images they don't float in the middle and they force the leftText and rightText spans up to the top and bottom of their container - any ideas?

    TIA
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    249
    Rep Power
    11
    Hi,

    experiment with your CSS code online with this tool:

    http://www.mycgiserver.com/~ibidris/css.jsp
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2002
    Posts
    596
    Rep Power
    23
    that looks like an interesting tool but I got this error:
    Code:
    java.net.UnknownHostException: http
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
    at java.net.Socket.connect(Socket.java:434)
    at java.net.Socket.connect(Socket.java:384)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
    at sun.net.www.http.HttpClient.New(HttpClient.java:336)
    at sun.net.www.http.HttpClient.New(HttpClient.java:317)
    at sun.net.www.http.HttpClient.New(HttpClient.java:312)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
    at sun.net.http://www.protocol.http.HttpURLConn...getInputStream(HttpURLConnection.java:574)
    at java.net.URL.openStream(URL.java:960)
    at ibidris.CSSServlet.doPost(CSSServlet.java:34)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:95)
    at com.caucho.server.http.Invocation.service(Invocation.java:291)
    at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:341)
    at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:268)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:136)
    at java.lang.Thread.run(Thread.java:543)
    I know nothing about jsp but I dunno why this would have anything to do with security restrictions at my site cos you're just doing a http get at this point, no? unless it's something to do with the url -it's a dynamic site, built with coldfusion out of a cms: http://education.brighton-hove.gov.u...m?request=a301
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    249
    Rep Power
    11
    Hi,

    Yes you have a secured dynamic page. TO try it out you wil have to copy into a html file and put it on an unsecured portion of your website. Or you can export only the styleheets and use it with some test html page with nonsensical text

    Thanks for trying it out.

    http://galileo.spaceports.com/~ibidris/
    Last edited by ibidris2003; August 4th, 2003 at 06:03 AM.
  8. #5
  9. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    css:
    Code:
    #Bottommenu {
    	padding:10px 5px;
    	background-color:#003498;
    	font:10px verdana, arial, helvetica, sans-serif;
    	color:#fff;
    	width:545px;
    }
    .leftText {
    	float:left;
    	text-align:left;
    	padding-bottom:5px;
    }
    .rightText {
    	float:right;
    	text-align:right;
    }
    #footerIcons {
      	text-align: center;
    	background: transparent;
    }


    html:
    Code:
    <div id="Bottommenu">
    
    	<span class="leftText">
    		<a href="site02.cfm?request=A301" title="Click to browse the text only version of this website" style="color:#fff;">Text only version</a>
    	</span>
    
    
    	<span class="rightText">
    		<a href="site01.cfm?request=b1000331" title="Send your feedback" style="color:#fff;">Send your views</a>
    	</span>
    
    	<div id="footerIcons">
    		<a href="site01.cfm?request=A301&subscribe=true" title="Subscribe to updates on this page"><img src="education/images/subscribe.gif" border="0"></a>
    		<a href="site01.cfm?request=A301&quicklink=true" title="Add this page to your homepage quicklinks"><img src="education/images/quicklink.gif" border="0"></a>
    		<a href="site01.cfm?request=A301&print=true&" target="_blank" title="Click for a printable version of this page"><img src="education/images/_print.gif" border="0"></a>
    	</div>
    
    </div>
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2002
    Posts
    596
    Rep Power
    23

    Thumbs up


    hey Akh thanks so much! foggy as to why it works, but it does, so I'm happy.....give yourself a shiny

IMN logo majestic logo threadwatch logo seochat tools logo