danhodge Posted January 11, 2011 Report Share Posted January 11, 2011 My current project is on this link here, which is just for me to test Javascripts and some CSS i don't know yet. I am hoping to make one button a lighter blue, and the others stay the color they are now. I tried this by using two Div tags, but i can't seem to keep them on the same line if i do use the two div tags... Is there a way around this, like a Javascript event that handles a link that has been clicked on, and can change the background? Thanks, Danny Quote Link to comment Share on other sites More sharing options...
Wickham Posted January 11, 2011 Report Share Posted January 11, 2011 I can't see your website at the moment, the page is from your web host and says "You are seeing this page because the system administrator of 000webhost.com is currently checking this website for malicious content. This redirect page will be removed once we finish manually checking all files on this account." To answer your query in general terms, to get divs side by side all of them must have float: left; or float: right. It's often a good idea to put all the floated divs in a container which has overflow: hidden; or another method to clear the floats to stop lower content moving up into any available space below a floated div that has less content than others. It keeps lower content below the lowest floated div. There are other ways to do this. Quote Link to comment Share on other sites More sharing options...
danhodge Posted January 11, 2011 Author Report Share Posted January 11, 2011 Ahh thank you, its working fine now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.