This site requires JavaScript, please enable it in your browser!
Greenfoot back
divinity
divinity wrote ...

2017/2/23

web link not moving

divinity divinity

2017/2/23

#
hi danpost, super_hippo how are you guys, what have you been up to. I am doing three course this semester, obj2 programming, client server and internet tech, my problem is with internet tech, I am doing a tutorial webpage on my school website. I have done everything and everything is come out find and good site working like it supposed to but one problem. it is the link it is supposed to be something like dis. home (to the left) costaatt( to be in the middle) secure area(to the right) I have done and tried everthing that I can think of to get it like that but for some reason it will not move. everything is on the left. I am sending you the link and the css codes that I used can u tell me what u can see what I am doing wrong. another pair of eyes will do fine for me.
this is the navigation bar

</div>
				
			<div id ="topNavBar">			 
			   <a class color ="black"="navlink"href="http://www.costaatt.edu.tt">HOME</a>
			   <a class color ="black"="navlink"href="http://neo.costaatt.edu.tt/moodle">COSTAATT</a>
			   <a class color ="black"="navlink"href="http://www.costaatt.edu.tt">SECURE AREA</a>			   
			</div>

this is the css codes that I use

#topNavBar{
	float: left;
	height: 42px;
	width: 100%;
	background-color: #fed84f;
	font-family:impact;
	white-space:nowrap;
}
.navlink
{
	float:left;
	background-color: #fed84f;
	margin-right:auto;
	margin-left:auto;	
	width:800%;
Super_Hippo Super_Hippo

2017/2/23

#
There is no code which would make the links be somewhere else than left. The last time I created a website, I used a table to do this (not sure if this is the best way). Make the table's width be 100 % of the screen and split it into three cells with equal width. In each cell, place one link and center it in the middle.
davmac davmac

2017/2/23

#
You could float the first link left, the last link right, and have the text-alignment of the containing element be "centered". With that said, this is really off-topic for this forum... can I suggest you find a suitable HTML forum instead?
You need to login to post a reply.