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

5052 posts

Uber Geek

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

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

5052 posts

Uber Geek

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

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

5052 posts

Uber Geek

Trusted

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

Awesome. Thanks muchly




Twitter: ajobbins


ajobbins

5052 posts

Uber Geek

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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.