Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 25, 2012, 11:53 AM   #1
SimonUK5
macrumors 6502
 
Join Date: Nov 2010
Send a message via AIM to SimonUK5 Send a message via MSN to SimonUK5 Send a message via Skype™ to SimonUK5
Centering Fireworks Nav Bar?

Due to some crazy ass course at school I've had to make a really simple Nav bar in fireworks and then Import it into dreameaver. That was fine i did it and whatever.

But,

I can't Center the nav bar in dreamweaver? I Preview it in Safari and it just shows top left and i need it to show Top Center? And i can't for the life of my work out how to get it there :P


I'm a Web Design Noob! Help me!

__________________
2013 Macbook Air 11' 1.3/8GB | 2012 Mac Mini 2.5/4GB | 2009 Mac Pro 3.2 Quad / 12Gb | 2008 Black Macbook 2.4/4GB
SimonUK5 is offline   0 Reply With Quote
Old Feb 26, 2012, 06:38 PM   #2
mwilloam
macrumors newbie
 
Join Date: Apr 2010
I'm not a Dreamweaver user but if you can access and edit your CSS styling code you can center it fairly easily.

I'm assuming the navbar is an image file (jpg,png?) that you exported from Fireworks. Also assuming you know the width of it in pixels.

HTML would looks something like:

<html>
........
<body>

<div id="navbar"> </div>

</body>
</html>

Then CSS:

#navbar {
width:800px; (whatever width the navbar needs to be or is)
margin: 0 auto; (this sets the navbar's top and bottom margin to 0 and the left and right to auto, which auto centers it in the window.)
}

That's it. Does that make sense?
mwilloam is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Need Help Centering UL CSS menu screensaver400 Web Design and Development 2 Dec 27, 2012 07:28 PM
Slightly Random Line in Nav Bar Comeagain? Site and Forum Feedback 6 Sep 10, 2012 08:55 AM
Resolved: Hiding/Showing Status Bar & Nav Bar issue. troop231 iPhone/iPad Programming 4 Jul 17, 2012 07:59 AM
hide nav bar chhoda iPhone/iPad Programming 2 Jun 26, 2012 04:51 AM
How Nav bar button hidden nashyo iPhone/iPad Programming 0 Jun 22, 2012 02:22 AM

Forum Jump

All times are GMT -5. The time now is 11:02 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC