hello everybody, this is my code how can I show (div and p) apposite to each other by using css?

Recommended Answers

All 2 Replies

Something like this:

div#textapposite { float: left; width: 50%; }
p#apposite { float: right; width: 50%; }

If you know the height of the div you want vertically centered, one trick you can use is absolute or relative positioning with a negative top margin as so:

.header_first_above .first_above .icons {
position: relative;
top: 50%;
height: 150px;
margin-top: -75px;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.