Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

positioning a div right and left simultaneously

positioning a div right and left simultaneously

Problem

i'm trying to make a div have a width using the absolute Positioning and it work fine in google chrome but in fierfox it doesnt. why is there a conflict ? i tried the exact same code in both browser and on fierfox doesnt reconize it.

   

    
        Kelma

and this is the css file

#center{
    position: absolute;
    left:50px;
    right: 50px;
}
Problem courtesy of: Oussama Bouthouri

Solution

Take a look at this:



    
        Kelma

i wrapper the input with a div, and i applied the styling to the div, and 100% width to the input.

Solution courtesy of: trajce

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

positioning a div right and left simultaneously

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×