| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Live Forever
|
Help with CSS
Hello (again) I’ve been looking at loads of different CSS tutorials, but I cant work out how to put boxes next to each other and have it all centred. http://www.matt-prince.co.uk/upload/ That’s what I’ve done so far. This might help explain what I am trying to do. http://www.matt-prince.co.uk/upload/layout.jpg Can anyone helpme with this? |
|
|
|
|
|
#2 (permalink) |
|
I like code.
|
Well, if you want boxes next to each other and all of them being center, first use a container div with the other divs inside with float: left and float: right. Below is an example Code:
|
|
|
|
#6 (permalink) |
|
Live Forever
|
ok, I’ve got another problem that i hope you can help me with. http://www.matt-prince.co.uk/test/shiowTest.htm how can i get this to work properly, when you click more, more text should appear, then when you click more again it should go back to how it was originally. but it doesn’t always do this. how can i fix this? |
|
|
|
#8 (permalink) |
|
Live Forever
|
I juist tryed it again, it work ok in IE (just the text is a little out of line, but i can fix that) In FF if you clcik the middle "more" it show the text, then click t again to hide the text and the bottom section dosent move back. (hopfully you get what am trying say) |
|
|
|
#10 (permalink) |
|
Baskin'
Join Date: Feb 2005
Posts: 5,227
|
Have a look at this tutorial from evolt - It's pretty solid http://www.evolt.org/article/Collaps.../?format=print |
|
|
|
#11 (permalink) | |
|
now with added beard
Join Date: Mar 2004
Location: Liverpool
Posts: 5,273
|
Quote:
That won't quite center everything. You'll probably need to use: margin-left: auto; margin-right:auto; and maybe even text-align: justified; to be sure fuck signatures
|
|
|
|
|
#12 (permalink) | |
|
dt immigrant
|
That is odd. In the first example I gave you everything seemed to work fine I played with the code some more, and it still works fine, http://randomcolors.com/uploads/dt/showhide/mat2.html well almost point) My guess is your problem has to do with the images you inserted as dividers in the code Quote:
try removing those and adding them with css. It's just a guess, I dunno |
|
|
![]() |