Jump to content
Sign in to follow this  
Anthony Luth

Centering Content Div

Recommended Posts

Anthony Luth

So I am having an issue, this works in some browsers, but not in others. My screen looks fine, but not sure why it I have to do it this way....

 

div.content {
  padding-left: 56px;
  position:relative;
}

Any idea if I can float it to the center instead of adding a padding?

 

div_content.png


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Anthony Luth

Not quite! But thanks Batman!


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Danny

You're using the Nav Classic navigation section, the code on the post Batman linked is for the NavBar section. Use the code below instead.

 

#site .navigation_wrap .main_nav { margin-right: 0; }
#site .main_nav ul { text-align: center; float: none; }
#site .main_nav ul > li { float: none; display: inline-block; }

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Anthony Luth

That still messes it up, everything moves to the left outside of where the div should be.

 

div_content_fix.png


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Rob

Anthony,

 

If you look for these elements and adjust from this example, I think you'll find some success:

 

.main_nav_container.nosearch, .nosearch .main_nav {
    margin-left130px;
    margin-rightauto;
    positionrelative;
}
.navigation_wrap .main_nav_container {
    floatnone;
    width100%;
}
 
The margin-left above obviously will depend on various factors so it clearly needs individual adjustment.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Danny

Do you have a link to your site?

 

Also, remove any custom CSS you have added related to your navigation menu, then the code I provided should work, just tested it on a test site of mine and worked as intended.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • Anthony King
      By Anthony King+
      Hello,
      I am wanting to know what the status of the Pagelines Platform.
      I have noticed that there has been absolutely no updates on Platform 5 for over 8 months.
      Please tell me you haven't gone off on another tangent and going to build the next great solution
      and then leave all of us to have to completely rebuild our sites like we did for
      Pagelines, then DMS, then Pagelines Platform.
      I like what you build, but what you need to do is build one product and then make it better, rather than 
      abandoning it and building something else.
      You haven't done anything for so long that even WordPress is providing a warning.
      "Warning: This plugin has not been tested with your current version of WordPress."
      So what is the Status. I mean if I am going to pay a monthly fee for a product, I don't want to pay for one
      that is no longer being supported. You have a great product, I'm not bashing it, I'm just wondering what 
      your next move is because I have business decisions to make for myself, and whether of not this is something
      I should stick with.

      Please be kind enough to respond.

      Thank You,
      Anthony
    • sakkthi subramaniyam
      By sakkthi subramaniyam
      Working on a very old site which has  pagelines framework theme. I need section plugin. so i can install postpins section. I have lost backup copy.
      Thank you.
    • elementalkites
      By elementalkites+
      Good evening. I am attempting to use the Impulse section on a page I am working on (https://dev.elementalkites.com). The tool seems to have the ability to overlay a logo on top of the slider images but in my case it isn't working, even though I have added the logo file and given it a height to display at. I have attached a screenshot for reference. Any help would be appreciated.
       
       
    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
×