Click here to Skip to main content
14,638,900 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have do two DIV one for unorder list and another one for image and some text. the problem is the text is appearing under both the div i dont know why please see the website to understand it what i am trying to say arifmodule.freeiz.com/index.html.html

i want text to appear only under the picture div or in picutre div. please when you give solution if you can explain it to to. thanks in advance

HTML FILE
<html>
<head>
<link rel="stylesheet" href="example.css" type="text/css">
</head>
<body>
<div style="height:20px;">
</div>
<div id ="first">
<div id="fleft">
<ul>
<li id="products"><a href="tata">First</a></li>
<li><a href="tata">Products</a></li>
<li><a href="tata">Features</a></li>
<li><a href="tata">DecoKiosk</a></li>
<li><a href="tata">DecoCoach</a></li>
<li><a href="tata">CorelDRAW Graphic Suite X6</a></li>
<li><a href="tata">Business Coaching</a></li>
<li><a href="tata">By Industry</a></li>
<li><a href="tata">Get Started</a></li>
</ul>
</div>
<div id ="fright">
<h1>DecoNetwork Products</h1>
<img src="page-products.png">
<span class="introtext">DecoNetwork in available two powerful levels
designed for all business types. <b>DecoNetwork Standard</b>
focused on quote, order and invoice management with Business Hub&trade;
and also includes a simple catalog website to promote your products.
<b>DecoNetwork Premium</b> boasts a power and completely customizable
website to sell custom decorated and blank goods online.</span>

</div>
</div>
</body>
</html>


CSS FILE
body{margin:0px; padding:0px;}
#first {width:90%; margin-right:auto; margin-left:auto; float:left;}

#fleft {float:left; margin-right:0px; }

#fleft ul {padding:0px; margin-left:20px;}


#fleft li {list-style:none; padding:0px; margin:0px;
margin-left:25px;
font-family:arial; font-size:14px; }

#fleft a {text-decoration: none; color: black; margin-left:15px;
padding: 12px 30px 6px 0px; display:block;
border-bottom:1px dashed #D0D0D0; }
#products {background: url("menu-active.png") no-repeat;}

#fright {
    padding:0;

    background:#FFFFFF;
}
.introtext {
    color:#666666;
    line-height: 30px;
    font-size:14px;
    float:left;
    margin-bottom:20px;
}
Posted
Updated 20-Apr-13 22:54pm
v2
Rate this:
Please Sign up or sign in to vote.

Solution 1

Use table and all will be ok :)
   
Comments
arifsuhail 22-Apr-13 20:07pm
   
Thanks for the answer i know i can do it with tables but i try to use the div in order to understand them more, can i ask you one more thing can we make div in td like we describe the whole column as div?? thanks
Style-7 23-Apr-13 0:22am
   
Yes it is.
arifsuhail 24-Apr-13 14:27pm
   
thanks
Rate this:
Please Sign up or sign in to vote.

Solution 2

It's easy , just format your page in some tables

<table>
<tr>
<td> Left side contents </td>
<td> Right side contents </td>
</tr>
</table>
   
Comments
arifsuhail 22-Apr-13 20:08pm
   
Thanks for the answer i know i can do it with tables but i try to use the div in order to understand them more, can i ask you one more thing can we make div in td like we describe the whole column as div?? thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100