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

Awesome
5050 posts

Uber Geek

Trusted
Subscriber

#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
Affiliate link
 
 
 

Affiliate link: You will find anything you want at MightyApe.
chiefie
I iz your trusted friend
5877 posts

Uber Geek

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

Awesome
5050 posts

Uber Geek

Trusted
Subscriber

  #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

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

Awesome
5050 posts

Uber Geek

Trusted
Subscriber

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

Awesome. Thanks muchly




Twitter: ajobbins


ajobbins

Awesome
5050 posts

Uber Geek

Trusted
Subscriber

  #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





News and reviews »

D-Link G415 4G Smart Router Review
Posted 27-Jun-2022 17:24


New Zealand Video Game Sales Reaches $540 Million
Posted 26-Jun-2022 14:49


Github Copilot Generally Available to All Developers
Posted 26-Jun-2022 14:37


Logitech G Introduces the New Astro A10 Headset
Posted 26-Jun-2022 14:20


Fitbit introduces Sleep Profiles
Posted 26-Jun-2022 14:11


Synology Introduces FlashStation FS3410
Posted 26-Jun-2022 14:04


Intel Arc A380 Graphics First Available in China
Posted 15-Jun-2022 17:08


JBL Introduces PartyBox Encore Essential Speaker
Posted 15-Jun-2022 17:05


New TVNZ+ streaming brand launches
Posted 13-Jun-2022 08:35


Chromecast With Google TV Review
Posted 10-Jun-2022 17:10


Xbox Gaming on Your Samsung Smart TV No Console Required
Posted 10-Jun-2022 00:01


Xbox Cloud Gaming Now Available in New Zealand
Posted 10-Jun-2022 00:01


HP Envy Inspire 7900e Review
Posted 9-Jun-2022 20:31


Philips Hue Starter Kit Review
Posted 4-Jun-2022 11:10


Sony Expands Its Wireless Speaker X-series Range
Posted 4-Jun-2022 10:25









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.