I have a static website and want to add social media link buttons like twitter, facebook and likedin and all buttons should be display horizontally but the problem was that when I put first button its look well as per my program but when I place the second button within the div it puts itself under the first button, in its place of to the right of the first button I try lots but still its not working Help me Thanks in AdvanceI have a static website and want to add social media link buttons like twitter, facebook and likedin and all buttons should be display horizontally but the problem was that when I put first button its look well as per my program but when I place the second button within the div it puts itself under the first button, in its place of to the right of the first button I try lots but still its not working Help me Thanks in Advance
What GMF said, no code becomes a case of "this is why we can't help you" Though centering an image you have three options: 1) text-align:center on it's parent -- difficult to use if there's other content inside it's parent. 2) apply the image as a css background, use background-position to center it. Difficult if the image is in fact content, and belongs in the markup. 3) set the img to display:block and margin:0 auto; I do end up with a question though, what do they need a div around them for? Are you talking a div around each image, or a div around all three images... what other elements is it interacting with in flow? Again, why we need to see the code.
Is each button in a separate div? (Just guessing here.) Divs are block elements - each one will start on a new line.
give the all divs a common class name and then in your css stylesheet add these lines: .className { display:inline-block; } hope it will work.