Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2012, 10:00 PM   PM User | #1
purpleozzie
New to the CF scene

 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
purpleozzie is an unknown quantity at this point
Jumping Menu

Hi wondered if someone could help me..

I have just finished website for my wife's photography business..

www.michellewaspe.com

using Wordpress

We kept changing the design so some of the CSS is a bit of a mess and am trying to tidy this up..

The issue I have is with the menu..

on loading the page (have checked in firefox and Chrome) jumps from the left to the centre..

Can someone check it for me and find out what the problem is..

Thanks,
purpleozzie is offline   Reply With Quote
Old 10-03-2012, 03:03 AM   PM User | #2
luckydog2011
New Coder

 
Join Date: Oct 2011
Posts: 23
Thanks: 5
Thanked 0 Times in 0 Posts
luckydog2011 is an unknown quantity at this point
I am running the page in firefox and I see no noticeable issues, did you fix this?
luckydog2011 is offline   Reply With Quote
Old 10-03-2012, 05:18 AM   PM User | #3
aaronhockey_09
Regular Coder

 
Join Date: Dec 2010
Posts: 411
Thanks: 21
Thanked 55 Times in 55 Posts
aaronhockey_09 is an unknown quantity at this point
I believe this is because your adding inline styling to your HTML for that div
**padding-left: 112px;

Instead, add this in your external style sheet, try something like this instead

ul.primary-nav-menu {
line-height: 14px;
margin: 0 auto;
padding: 0 18px;
width: 814px;
aaronhockey_09 is offline   Reply With Quote
Old 10-03-2012, 08:21 PM   PM User | #4
purpleozzie
New to the CF scene

 
Join Date: Jan 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
purpleozzie is an unknown quantity at this point
Hi guys,

Thanks for your replies.. However I tried the fix from Aaronhockey and it didn't work so I had to use a messy workaround...

I am using a Wysiwyg editor called Prophoto to do the website. So rather than set the menu to be centre aligned as I wanted I set it to left aligned and then used custom CSS to overwrite the padding to push the menu into the centre... If anyone knows a better way of doing this please reply..

Ta
purpleozzie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:52 AM.


Advertisement
Log in to turn off these ads.