code.png

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

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, networking, learning, and sharing knowledge.