Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


ajobbins

5053 posts

Uber Geek
+1 received by user: 1279

Trusted

#14476 5-Jul-2007 12:05
Send private message

I've been trying to centre align some DIV tags all morning and I cant get it to work the way I want. I've done heaps of googling and I can get it to centre align if I just use one box, but I want to float 4 different boxes next to each other so as soon as I add the float line to the CSS it left aligns again.

Does anyone know how i can fix this?

The CSS without the float:

.HomeHoverButtonBox {
 margin: 0px auto;
 width: 150px;
 border: 1px solid #FFFFFF;
}


And With:

.HomeHoverButtonBox {
 margin: 0px auto;
 width: 150px;
 border: 1px solid #FFFFFF;
 float: left;
}





Twitter: ajobbins


Create new topic
chiefie
I iz your trusted friend
5877 posts

Uber Geek
+1 received by user: 151

Retired Mod
Trusted
Lifetime subscriber

  #77010 5-Jul-2007 12:32
Send private message

do you have an image representation of what you want to achieve? So I can visually understand what you are trying to do. Post an image of your concept design and I may be able to help.

Also what browser is it not working in?




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 




ajobbins

5053 posts

Uber Geek
+1 received by user: 1279

Trusted

  #77028 5-Jul-2007 13:58
Send private message

Have a look at:

http://www.adamjobbins.com/eg1.php

and

http://www.adamjobbins.com/eg2.php

What I want is:

http://www.adamjobbins.com/eg3.php (Just uploading this now - layout achieved through tables, which I want to avoid)

Seems to be happening in all browsers that I have tested (IE7, FF2, Opera). Havent tried IE6 as I dont have a copy any more.

Also, I cant seem to align my text vertically center on my navbar (The green one) on the following page:

http://www.adamjobbins.com/eg4.php




Twitter: ajobbins


chiefie
I iz your trusted friend
5877 posts

Uber Geek
+1 received by user: 151

Retired Mod
Trusted
Lifetime subscriber

  #77035 5-Jul-2007 14:36
Send private message

Okay I got the visual idea of what you want to achieve, let me analyse your code and will get back to you directly via the email. Stay tuned.




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 




ajobbins

5053 posts

Uber Geek
+1 received by user: 1279

Trusted

  #77041 5-Jul-2007 15:01
Send private message

Awesome. Thanks muchly




Twitter: ajobbins


ajobbins

5053 posts

Uber Geek
+1 received by user: 1279

Trusted

  #77080 5-Jul-2007 19:09
Send private message

chiefie: Okay I got the visual idea of what you want to achieve, let me analyse your code and will get back to you directly via the email. Stay tuned.


Chiefie, would it be easier if I emailed you the source as a ZIP? If so PM me with an email address to send to




Twitter: ajobbins


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.