nsdlfefinedieicbe nsdlfefinedieicbe - 4 months ago 8
HTML Question

Display image on right side

We have page looking like this link

enter image description here

We want to display like below image :

enter image description here

1)reduce the background-color length of text

see cases


2)Display Image on right side

I can try chnaging
position : relative; top: left: some px;
for everything. but i felt its bad coding. so please help for me.

css

.custom_case
{
background: #fff;
padding: 95px;
}

.cc1
{
color: #ff7704;
font-family: 'Roboto Condensed', sans-serif;
font-size:34px;
}

.cc2
{
color: #000000;
text-transform: capitalize;
font-size:34px;

}


#brand_select
{
color: #000000;
text-transform: capitalize;
font-size:17px;
font-weight:bold;
letter-spacing: 1px;
}



#model_select
{
color: #000000;
text-transform: capitalize;
font-size:17px;
font-weight:bold;
letter-spacing: 1px;


}

.cc3
{
background: #ff7704;
position:relative;
top:20px;
}


.cc5
{
font-size:20px;
color:#FFFFFF;
}


html

<div class="custom_case">
<div class="custom_case_left">
<h1 class="cc1">Custom Cases</h1>
<h2 class="cc2">Make Your Own design</h2>
</div>

<?php

$brandSelect .= '<option value="">My Brand</option>';

echo '<select id="model_select"><option value="">My Model</option></select>';

?>

<div class ="cc3">
<div class ="cc4">
<a href="http://sbdev2.kidsdial.com/golden-waves-marble-texture-apple-iphone-4-phone-case.html"><span class ="cc5"> See Cases </span> </a>
</div>

</div>

<div class="custom_case_right">
<img src="<?php echo $this->getSkinUrl('images/gal.PNG'); ?>" >


</div>

Answer

you can try this one:

 .custom_case
{
    background: #fff;
    padding: 95px;

}
.custom_case_left h1
{
  font-size:20px;
}
.custom_case_left h2
{
  font-size:20px;
}
.cc1
{
color: #ff7704; 
font-family: 'Roboto Condensed', sans-serif;
font-size:34px;
}

.cc2
{
color: #000000; 
text-transform: capitalize;
font-size:34px;

}

.cc4
{
  width:200px;
}
#brand_select
{
color: #000000; 
text-transform: capitalize;
font-size:17px;
font-weight:bold;
letter-spacing: 1px;
}



#model_select
{
color: #000000; 
text-transform: capitalize;
font-size:17px;
font-weight:bold;
letter-spacing: 1px;


}

.cc3 
{   
    background: #ff7704;
    position:relative;
    top:20px; 
    width: 148px;
}


.cc5
{
    font-size:20px;
    color:#FFFFFF;

}

.custom_case_right img {
    float: right;
    top: -150px;
    position: relative;
    right: -90px;
    width:250px;
}

UPDATED DEMO

Comments