This is a discussion on "Is there an alternitive to 'Float:Center'" within the Web Page Design section. This forum, and the thread "Is there an alternitive to 'Float:Center' are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Is there an alternitive to 'Float:Center'
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Hi, i have looked about the CSS forum for a little while now to see if anyone has posted this recently but i never found anything.
My question is, is there any way that you can 'float' center? You can see my problem here: http://marc-online.co.uk Thanks in advance Marc. |
|
|
|
#2
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Well ... given the fact that float: center; (it's left, right or none) doesn't exists I'll say yes but ... what are you trying to achieve?
|
|
#3
|
||||
|
||||
|
Re: Is there an alternitive to 'Float:Center'
i am trying to get the main content (big box) to line up with the left side of the marc-online head and the little side box to lign up with the right hand edge of the marc-online header. do i have to put padding in at the sides of them to achieve this?
Thanks, Marc. |
|
#4
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Well ... you're problem is with this
How to cdenter your site horizontally Then just float your #maincontents left and #sidebar to the right. Don't forget to give them widths too. You might want to have a look at my sticky in the Beginners Resources section ... the same one as in my sig for examples on how to achieve 2-column layouts. |
|
#5
|
||||
|
||||
|
Re: Is there an alternitive to 'Float:Center'
have a look now. I have floated the big one to the left and the litte one to the right, but the little one stays in the big one! ill give a go what you just said.
Thanks again. |
|
#6
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
You didn't change your HTML like I told you to.
|
|
#7
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Also ... ditch the table for the menu. A menu is a list so use the <ul> <li> ...
CSS Design: Taming Lists Pure CSS rollovers without Javascript Loose the absolute positioning on the #menu too ... And add the centering wrapper. |
|
#8
|
||||
|
||||
|
Re: Is there an alternitive to 'Float:Center'
Check to see what youve said i have done correctly, because if i have done what you said that isnt going to work, i want my menu horazontaly. http://marc-online.co.uk
Ive found out how to center things, if anyone needs it:
Last edited by Marc; Apr 12th, 2007 at 13:37. |
|
#9
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Wow ... I'm not sure how else I can say this so I'll quote it again! Maybe if I added color and some bold
Quote:
And what the heck is
http://cssplay.co.uk/menus/index.html Your basic 2 column centered layout should look like this
|
|
#10
|
||||
|
||||
|
Re: Is there an alternitive to 'Float:Center'
lol, no offence but you make no sense whatsoever to me, i am 13 years old and i started doing CSS yesterday!
|
|
#11
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Good grief! Just READ the posts, go to the link I gave you and read and learn ... I pretty much gave you all your solutions short of re-doing the site for you.
Last edited by karinne; Apr 12th, 2007 at 13:56. |
|
#12
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
First thing to do is tell us exactly what layout you are trying to achieve so we can help you better, becasue I haven't got a clue what exactly you're trying to do. A diagram would be great.
Something that will help is to fill the content boxes with some text. Go here to generate some random text. It will fill out the divs if they ahven't got width and height set. Pete. |
|
#13
|
||||
|
||||
|
Re: Is there an alternitive to 'Float:Center'
ive fixed it
http://marc-online.co.uk the buttons are a bit skewed up in IE, i dont know why, but thats 1 problem solved. i had:
now i have got:
Last edited by Marc; Apr 12th, 2007 at 14:07. |
|
#14
|
|||
|
|||
|
Re: Is there an alternitive to 'Float:Center'
Quote:
Quote:
Again ... your menu should be a list
Last edited by karinne; Apr 12th, 2007 at 14:16. |
![]() |
| Tags |
| float center floatcenter |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Css Float??? | RZX Developer | Web Page Design | 4 | Aug 13th, 2007 10:37 |
| Center a Swf Help?? | nutbolt | Web Page Design | 20 | Apr 9th, 2007 10:21 |
| just want to center this | ragingmon | Web Page Design | 9 | Dec 29th, 2006 18:07 |
| Problems with float:left float:right | nvidiajoe | Web Page Design | 8 | Nov 17th, 2006 20:24 |
| IE6 Float | masonbarge | Web Page Design | 8 | Aug 16th, 2006 10:13 |