CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 4th, 2003, 05:46 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 19 m 33 sec
Reputation Power: 18
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

Reply With Quote
  #2  
Old August 4th, 2003, 06:28 AM
ibidris2003 ibidris2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 249 ibidris2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Hi,

experiment with your CSS code online with this tool:

http://www.mycgiserver.com/~ibidris/css.jsp

Reply With Quote
  #3  
Old August 4th, 2003, 06:48 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 19 m 33 sec
Reputation Power: 18
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.HttpURLCon....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....fm?request=a301

Reply With Quote
  #4  
Old August 4th, 2003, 06:53 AM
ibidris2003 ibidris2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 249 ibidris2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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 07:03 AM.

Reply With Quote
  #5  
Old August 4th, 2003, 07:22 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,715 Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level)Akh User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 17 h 42 m 44 sec
Reputation Power: 642
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>

Reply With Quote
  #6  
Old August 4th, 2003, 08:44 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 19 m 33 sec
Reputation Power: 18
Thumbs up

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css positioning problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT