Here is my code:
.head {
background-color: #EBEBEB;
height: 40px;
}
h3 {
display: inline;
padding: 8px 0px 0px 10px;
width: 45%;
}
#underFruits {
font-size: 12px;
}
.right {
float: right;
}
.btn {
width: 36px;
height: 36px;
display: inline-block;
cursor: pointer;
border: 1px red solid;
}
<div class="head">
<h3>Fruits</h3>
<span id="underFruits">Put me Under Fruits</span>
<div class="right" style="display: inline-block;">
<div id="Btn1" class="btn" style="display: inline-block;">Btn1</div>
<div id="Btn2" class="btn" style="display: inline-block;">Btn2</div>
</div>
</div>
What I want is,
I want to move text "Put me Under Fruits" actually under H3 heading,
Please note, I can't make any change to class "head" or .btn
<div class="head">
<div style="float:left">
<h3>Fruits</h3>
<div id="underFruits" style="margin-left:10px">Put me Under Fruits</div>
</div>
<div class="right">
<div id="Btn1" class="btn" style="display: inline-block;">Btn1</div>
<div id="Btn2" class="btn" style="display: inline-block;">Btn2</div>
</div>
</div>
You can achieve it like below.
<div class="head">
<div style="display:inline-block;">
<h3>Fruits</h3>
<div id="underFruits">Put me Under Fruits</div>
</div>
<div class="right" style="display: inline-block;">
<div id="Btn1" class="btn" style="display: inline-block;">Btn1</div>
<div id="Btn2" class="btn" style="display: inline-block;">Btn2</div>
</div>
</div>
DEMO
Related
I have two div's that I want to have equal height. The left div has dynamic content which can expand vertically with any number of inner div's. The right div has one inner div that needs to stay at the top and still be visible no matter how far you scroll down. Please look at this codepen
#shipping_policies {
border: 1px solid #000000;
padding: 5px;
}
#shipping_policies a {
display: block;
font-size: .9em;
text-decoration: underline;
}
.checkout .card-header {
background-color: #f2f2f2 !important;
}
.checkout button {
color: #000;
font-size: 0.6em;
}
.square1 {
height: 100px;
width: 100px;
background-color: red;
line-height: 100px;
text-align: center;
}
.square1 p {
color: #FFFFFF;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container mt-5 h-auto">
<div class="" style="">
<div class="col-6 border-danger float-left d-inline-block mr-1" style="background-color: #ffffff;">
<div style="width: 150px;" class="py-2 d-inline">
<div class="float-left">
<img src="https://via.placeholder.com/228x150" alt="" class="mt-2 mb-5" /><br>
<a class="mt-4" style="border-radius: 0; width: 150px; margin-bottom: 10px;" id="del-item" href="#">X REMOVE</a>
</div>
<div class="float-left ml-3 mt-1">
<p class="px-0 mb-0">short_desc</p>
<p class="px-0 mb-0">UOM</p>
<label for="quantity" style="margin-bottom: 0; font-weight: bold; margin-top: 20px;">QTY</label><br>
<input type="text" class="quantity" name="quantity" value="1">
</div>
</div>
<div style="position: absolute; right: 10px; bottom: 1px;">
<p class="mb-0" style="font-weight: bold; font-size: 1.1em; color: #990000;">$399.99</p>
</div>
</div>
<div class="col-6 border-danger float-left d-inline-block mr-1" style="background-color: #ffffff;">
<div style="width: 150px;" class="py-2 d-inline">
<div class="float-left">
<img src="https://via.placeholder.com/228x150" alt="" class="mt-2 mb-5" /><br>
<a class="mt-4" style="border-radius: 0; width: 150px; margin-bottom: 10px;" id="del-item" href="#">X REMOVE</a>
</div>
<div class="float-left ml-3 mt-1">
<p class="px-0 mb-0">short_desc</p>
<p class="px-0 mb-0">UOM</p>
<label for="quantity" style="margin-bottom: 0; font-weight: bold; margin-top: 20px;">QTY</label><br>
<input type="text" class="quantity" name="quantity" value="1">
</div>
</div>
<div style="position: absolute; right: 10px; bottom: 1px;">
<p class="mb-0" style="font-weight: bold; font-size: 1.1em; color: #990000;">$399.99</p>
</div>
</div>
</div>
<div class="" style="">
<div class="col-4 border-danger float-left ml-4" style="background-color: #f2f2f2; border-radius: 4px;">
<div class="w-100 mt-2">
<span>Subtotal</span>
<p class="float-right">$399.99</p>
</div>
<div class="w-100 mt-4">
<h4 style="font-weight: bold; margin-bottom: 0">Estimated Total</h4>
<p class="float-right" style="font-size: large; font-weight: bold;">$399.99</p>
<p class="" style="font-size: smaller">Tax Calculated at Checkout</p>
</div>
<hr style="height: 2px; color: #000; background: #000;" />
<div class="w-100">
<input class="w-100" style="height: 40px;" type="text" id="promo" name="promo" placeholder="Enter Promo Code" />
<button style="position: absolute; right: 8%; bottom: 34%; background-color: #0066CC; color: #FFFFFF;">Apply Now</button>
</div>
<hr style="height: 5px; color: #000; background: #0066CC;" />
<a class="w-100 mb-2 btn" style="background-color: #febd69;" href="http://groves.local/product/checkout">CHECKOUT</a>
</div>
<div class="float-right" style="margin-right: 15%; margin-top: 2%; width: 340px;">
<h5 style="font-weight: bold;">Shipping & Policies</h5>
<div id="shipping_policies">
Shipping
Policies
</div>
</div>
</div>
<div>
This code snippet is where I have gotten so far any help is greatly appreciated.
Added a class .fixed with position:fixed to the element that should stay on one place, also fixed your html layout. See https://codepen.io/anon/pen/joYmvV?editors=1100
Update:
You can also add position:sticky instead of position:fixed - It produces a nice effect. See the updated code https://codepen.io/anon/pen/joYmvV?editors=1100
Use position fixed. Position fixed makes it so that an element stays at it's specified place even if the user scrolls up or down.
I have three divs floating on the right and the position is fixed. I would like the bottom most div to stop when it reaches the footer; however, it goes behind the footer and gets covered. I have been trying to fix this for some time but can't figure it out.. The footer is set at position: relative and the width is set too 100%.
.sidebar-sticky {
margin-right: 9px;
position: fixed;
margin-left: 800px;
}
.sidebar-sticky2 {
margin-right: 9px;
position: fixed;
margin-left: 800px;
margin-top: 350px;
}
.sidebar-sticky3 {
margin-right: 9px;
margin-left: -340px;
margin-top: 605px;
position: fixed;
}
<!-- Office Reservation -->
<asp:Panel ID="pnl_In_Out" runat="server">
<div class="sidebar-sticky">
<!--<div class="container col-md-3" style="margin-top: 0px; position: relative; top:0px">-->
<%--<div class="" style="margin-left: 10px; padding-left:0px; max-width: 240px; width: 100%; position: relative; float: left;">--%>
<div class="office-reservation">
<div class="panel-main panel-primary">
<div class="panel-heading text-center" style="font-size: 15px; color: #444; font-weight: bold;">OFFICE RESERVATION</div>
<hr style="width: 50%; margin-left: auto; margin-right: auto; margin-top: 0px;">
<%--<div class="divider-line" style="width: 90px; border-top: 1px solid #ddd; text-align: center; margin: 0px 50px 0px 70px;"></div>--%>
<div class="panel-body">
<div class="row">
<div class="form-group" style="padding-left: 5px; text-align: left">
<label class="control-label" style="padding-left: 20px; text-align: left; font-size: 14px; color: #444;"><b>In</b></label>
<div class="input-group">
<div class="col-md-12">
<div class="textarea-form">
<asp:TextBox ID="txt_SearchDateFrom" CssClass="form-control form-control-inline input-small date-picker" runat="server"></asp:TextBox>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar" style="padding: 3px;"></span>
</span>
</div>
</div>
</div>
<div class="input-group">
<div class="col-md-12">
<div class="">
<%--<asp:TextBox ID="txt_SearchTimeFrom" CssClass="form-control" Width="145" runat="server"></asp:TextBox>--%>
<asp:DropDownList ID="ddl_SearchTimeFrom" CssClass="form-control text-right" Width="145" Height="35" runat="server"></asp:DropDownList>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time" style="padding: 3px; width: 20px"></span>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group" style="padding-left: 5px; text-align: left">
<label class="control-label" style="padding-left: 20px; text-align: left; font-size: 14px; color: #444;"><b>Out</b></label>
<div class="input-group">
<div class="col-md-12">
<div class="">
<asp:TextBox ID="txt_SearchDateTo" CssClass="form-control form-control-inline input-small date-picker" runat="server"></asp:TextBox>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar" style="padding: 3px"></span>
</span>
</div>
</div>
</div>
<div class="input-group">
<div class="col-md-12">
<div class="">
<%--<asp:TextBox ID="txt_SearchTimeTo" CssClass="form-control timepicker timepicker-no-seconds" Width="145" runat="server"></asp:TextBox>--%>
<asp:DropDownList ID="ddl_SearchTimeTo" CssClass="form-control" Width="145" Height="35" runat="server"></asp:DropDownList>
<span class="input-group-addon">
<span class="glyphicon glyphicon-time" style="padding: 3px; width:20px"></span>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="wigdet_input_box" style="padding-top: 5px;">
<asp:Button ID="btn_Reserve" runat="server" Text="RESERVE" CssClass="btn btn-danger" Width="50%" OnClick="btn_Reserve_Time_Click" />
</div>
</div>
</div>
</div>
</div>
</asp:Panel>
<!-- QUICK CONTACT FORM -->
<asp:Panel ID="pnl_Question" runat="server">
<!--<div class="container col-md-3" style="margin-top: 0px; position: relative; top:0px">-->
<%--<div class="" style="margin-left: 10px; padding-left:0px; max-width: 240px; width: 100%; position: relative; float: left;">--%>
<div class="sidebar-sticky2">
<div class="panel-main panel-primary">
<div class="panel-heading text-center" style="font-size: 15px; color: #444; font-weight: bold;">QUESTIONS ?</div>
<hr style="width: 50%; margin-left: auto; margin-right: auto; margin-top: 0px;">
<div class="panel-body">
<div class="row">
<div class="form-group" style="padding-left: 5px; text-align: left">
<div class="input-group">
<div class="col-md-12">
<div class="">
<asp:TextBox ID="txt_Email" CssClass="form-control" Width="145" Font-Size="Small" runat="server" placeholder="Email Address"></asp:TextBox>
<span class="input-group-addon">
<span class="glyphicon glyphicon-envelope" style="padding: 3px"></span>
</span>
</div>
</div>
</div>
<div class="input-group">
<div class="col-md-12">
<div class="">
<asp:TextBox ID="txt_Message" TextMode="multiline" Rows="3" Font-Size="Small" CssClass="form-control" class="contact-message" Style="width: 100%!important; height: 70px; resize: none;" runat="server" placeholder="Enter Message"></asp:TextBox>
</div>
</div>
</div>
</div>
</div>
<div class="wigdet_input_box" style="padding-top: 5px;">
<asp:Button ID="btn_Message_Send" runat="server" Text="SEND" CssClass="btn btn-danger" Width="50%" OnClick="btn_Message_Send_Click" />
</div>
</div>
</div>
</div>
</asp:Panel>
<!-- CONTACT INFORMATION -->
<asp:Panel ID="Panel1" runat="server">
<!--<div class="container col-md-3" style="margin-top: 0px; position: relative; top:0px">-->
<%--<div class="" style="margin-left: 10px; padding-left:0px; max-width: 240px; width: 100%; position: relative; float: left;">--%>
<div class="sidebar-sticky3">
<div class="panel-main panel-primary">
<div class="panel-heading text-center" style="font-size: 15px; color: #444; font-weight: bold;">AGENT INFORMATION</div>
<hr style="width: 50%; margin-left: auto; margin-right: auto; margin-top: 0px;">
<div class="panel-body"">
<%--<div class="agent-photo">
<img src="/images/agent_face.jpg" width="80" alt="Agent" style="float: left;" />
</div>--%>
<div class="contact-info" style="text-align: center; color: #444; font-size: 14px;">
<%--<img src="/images/agent_face.jpg" width="150" alt="Agent" />--%>
<h5>Contact Number: </h5><asp:Label ID="lbl_ListingContactPhone" runat="server" Text="none"></asp:Label>
<h5>E-mail Address: </h5><asp:Label ID="lbl_ListingContactEmail" runat="server" Text="none"></asp:Label>
</div>
</div>
</div>
</div>
jQuery(document).ready(function() {
var el = jQuery('#sidebar');
top_offset = jQuery('#sidebar').offset().top - 60;
var box_height = el.height();
jQuery(window).scroll(function() {
var scroll_top = jQuery(window).scrollTop();
var bottom_offset = jQuery(document).height() - scroll_top - box_height;
var new_top_offset = jQuery(document).height() - box_height - 100;
if ((scroll_top > top_offset) && (bottom_offset > 180)) {
el.css('top', scroll_top - top_offset);
}
else if ((scroll_top > top_offset) && (bottom_offset < 181)) {
el.css('top', new_top_offset);
}
else {
el.css('top', '');
}
});
});
I do not think that you are using position: fixed; If you tell the element that is positioned with fixed, you are setting it to be positioned fixed relative to the viewport and it will not move from there. Also, It is better to position them like this:
position: fixed;
bottom: 0;
right: 0;
It is better with top, right, bottom and left then with margins. I guess that if you want when scrolling down to change behaviour of fixed positioned element, you should consider using javascript for that.
For some reason, the button is sticking to the top of where the image starts. I want to center it in the middle of the container. I am trying to center it with the "center" class:
position: relative;
top: 50%;
transform: translateY(-50%);
Code:
What it looks like right now:
What it should look like:
HTML:
<div style="background-image: url( './dist/img/background/minecraft.jpg' ); height: 125px;" class="col-md-12">
<div class="wrapper text-center center">
<div class="col-lg-5">
<span style="color: #FFFFFF; font-size: 220%;">
<img style="width: 100px; display: inline;" src="./dist/img/icon/minecraft.png" />
Minecraftasdasdsad
</span>
</div>
<div class="col-lg-3"></div>
<div class="row">
<div class="col-lg-4">
<button style="color: #FFFFFF; min-width: 100px;" class="btn btn-green">
Start
</button>
<button style="margin-left: 10px; color: #FFFFFF; min-width: 100px;" class="btn btn-red">
Stop
</button>
</div>
</div>
</div>
</div>
Here is an implementation using flexbox.
#center {
display: -webkit-flex;
display: flex;
justify-content: flex-end;
-webkit-align-items: center;
align-items: center;
}
<div style="background-image: url( 'https://cdn.pixabay.com/photo/2015/11/02/18/34/banner-1018818_960_720.jpg' ); height: 125px;" class="col-md-12">
<div class="wrapper text-center center">
<div class="col-lg-5">
<span style="color: #FFFFFF; font-size: 220%;">
<img style="width: 100px; display: inline;" src="https://cdn.pixabay.com/photo/2015/11/02/18/34/banner-1018818_960_720.jpg" />
Minecraftasdasdsad
</span>
</div>
<div class="col-lg-3"></div>
<div class="row">
<div id="center">
<button style="color: #FFFFFF; min-width: 100px;" class="btn btn-green">
Start
</button>
<button style="margin: 10px;color: #FFFFFF; min-width: 100px;" class="btn btn-red">
Stop
</button>
</div>
</div>
</div>
</div>
I have a navigation bar, but i don't know how to vertically align some classes.
I use bootstrap. The navigation bar is fixed position. The navbar is divided into 3 row. The search row is OK, but I can't vertically align the another rows.
Here is the HTML:
<div class="col-sm-10" >
<p>Reményik Tudástár</p>
</div>
</div>
</div>
</div>
<div class="col-sm-4 navbar-search vertical-align">
<div class="container-fluid">
<div class="row vertical-align">
<div class="col-sm-1"></div>
<div class="col-sm-9" style="padding: 0;">
<input type="text" name="search" class="navbar-search-input" placeholder="Keresés">
</div>
<div class="col-sm-1" style="">
<button class="navbar-search-button"><i class="fa fa-search"></i></button>
</div>
<div class="col-sm-1"></div>
</div>
</div>
</div>
<div class="col-sm-4 navbar-login" style="">
<div class="container-fluid">
<div class="row">
<div class="col-sm-10">
<p style="float: right;">Bejelentkezés</p>
</div>
<div class="col-sm-2">
<span class="fa fa-sign-in fa-2x"></span>
</div>
</div>
</div>
</div>
</div>
and here is the CSS:
.navigation-bar {
background-image: url("../img/nav_background.png");
padding: 15px;
box-shadow: 0px 2px 5px #999999;
}
.navbar-search-input {
width: 100%;
border: 0;
border-radius: 3px 0 0 3px;
height: 35px;
padding: 10px;
}
.navbar-search-button {
background-color: #203138;
color: #fff;
margin-right: 100%;
border: 0;
border-radius: 0 3px 3px 0;
height: 35px;
padding-left: 12px;
padding-right: 12px;
}
So, how can I vertically align the logo and the cim class?
Try this:-
display: inline-block;
*display: inline;
vertical-align: middle;
This is HTLM code. We click ctrl+P for we print we can view it on one page. But when we view it on Webview controller of Xcode. It shows on 2 pages. Any ideas help us. The html Content on below
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>StoryLeather</title>
<style>
body {
width: 100%;
/*background-color:green;*/
margin: 0px;
}
#top-div {
width: 100%;
}
#bottom-div {
width: 100%;
/*margin-top:40px;*/
}
.left-div {
float: left;
width: 45%;
/*background-color:pink;*/
margin-left: 5%;
}
.right-div {
float: right;
width: 45%;
/*background-color:blue;*/
margin-right: 5%;
text-align: center;
}
.text {
font-family: '微軟正黑體';
}
.number {
font-size: 35px;
margin-top: 20px;
}
.big-div {
width: 100%;
/*margin-top:30px;*/
}
.button {
width: 100%;
height: 40px;
margin-top: 10px;
}
.title-1 {
background-color: black;
width: 35%;
float: left;
border: none;
height: 29px;
color: white;
padding-top: 15px;
font-size: 13px;
}
#text-6 {
background-color: white;
width: 50%;
float: right;
height: 30px;
}
.line2 {
background-color: #a1a1a1;
height: 1px;
width: 100%;
margin-top: 10px;
}
.label {
margin-top: 30px;
font-size: 13px;
text-align: left;
}
.txt {
margin-top: 20px;
}
.img-f {
width: 50%;
float: left;
text-align: left;
margin-top: 15px;
}
.sign-r {
width: 50%;
float: right;
margin-top: 15px;
}
.line3 {
margin-top: 25px;
width: 100%;
height: 1px;
background-color: black;
}
.copy-text {
float: right;
/*margin-top:50px;*/
margin-right: 5%;
font-family: 'Microsoft JhengHei';
width: 45%;
text-align: right;
font-size: 5px;
}
.sizefont10 {
font-size: 10px;
}
.txt-right {
text-align: center;
font-weight: bold;
}
.footer {
font-size: 10px;
width: 100%;
margin-top: 30px;
}
.left-footer {
float: left;
/*margin-top:50px;*/
margin-left: 5%;
font-family: 'Microsoft JhengHei';
width: 45%;
}
.text-7 {
font-size: 13px;
}
.line {
height: 2px;
width: 100%;
background-color: black;
}
.img-Phone {
margin-top: 15px;
}
</style>
</head>
<body>
<div id="top-div">
<div class="left-div">
<div id="div-logo">
<img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSIkkJlwgDZDonmGAYOJgB0_895j4ocX-9gCxgLc90rLgOJHaNA" class="img-logo" style="max-height:50px;" />
</div>
<div class="text" style="font-weight:bold; /*margin-top:40px;*/ margin-top:10px; font-size:20px;">
STYLE 5C2
</div>
<div style="font-family:微軟正黑體; /*margin-top:20px;*/margin-top:10px; font-size:15px;">
IPhone 5C 硬殼式下蓋 客製化皮套
</div>
<div id="text-4" class="text" style="margin-top:10px;font-size:11px; width:100%;">
<div id="text-4-left" style="width:20%; float:left;">
- 外部皮料
<br/>- 備註
<br/>- 烙印選項
</div>
<div id="text-4-right" style="width:80%;float:left;">
十字紋 / A37-十字紋淺米白
<br/>[無填寫]
<br/>無需
</div>
</div>
<div style="clear:both;"></div>
<div class="img-Phone" style="width:100%;">
<img style="max-width:30%; float:left;" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSIkkJlwgDZDonmGAYOJgB0_895j4ocX-9gCxgLc90rLgOJHaNA" />
<img style="max-width:30%; float:right; margin-right:20%;" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSIkkJlwgDZDonmGAYOJgB0_895j4ocX-9gCxgLc90rLgOJHaNA" />
</div>
</div>
<div class="right-div">
<div id="div1">
<div class="text" style="margin-top:10px;font-size:15px;">
CUSTOM ORDERS
</div>
<div class="number" style="/*margin-top:30px;*/">
<div id="text-2" class="text" style="font-family:'Microsoft JhengHei';">
20140912
</div>
<div class="line">
</div>
<div id="text-3" class="text" style="font-family:'Microsoft JhengHei';">
A140912001
</div>
<div class="big-div">
<div class="button">
<div class="title-1">
客戶資訊
</div>
</div>
<div class="label">
<div class="label1">
<div class="txt">
姓名
</div>
<div class="line2">
</div>
</div>
<div class="label2">
<div class="txt">
電話
</div>
<div class="line2">
</div>
</div>
<div class="label3">
<div class="txt">
地址
</div>
<div class="line2">
</div>
</div>
</div>
<div class="sign">
<div class="img-f">
<img src="img2.png" style="width:40%;" />
</div>
<div class="sign-r">
<div class="text-7">訂購人確認 \/</div>
<div class="line3"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="clear:both;"></div>
<div class="footer">
<div class="left-footer">
- 經銷存聯 - 訂做商品下單後約30 天交件
</div>
<div class="copy-text">
COPYRIGHT 2014 PTOW KING CO. LTD ALL RIGHTS RESEARVED
</div>
</div>
<div style="clear:both;background-color:black; height:1px;"></div>
<div id="bottom-div">
<div class="left-div">
<div id="div-logo-2">
<img src="logo.png" class="img-logo" style="max-height:50px;" />
</div>
<div class="text" style="font-weight:bold;/* margin-top:40px;*/ margin-top:10px; font-size:20px;">
STYLE 5C2
</div>
<div style="font-family:微軟正黑體;/* margin-top:20px;*/margin-top:10px; font-size:15px;">
IPhone 5C 硬殼式下蓋 客製化皮套
</div>
<div id="text-4-2" class="text" style="margin-top:10px; font-size:11px;">
<div id="text-left-4-2" style="width:20%; float:left;">
- 外部皮料
<br/>- 備註
<br/>- 烙印選項
</div>
<div id="text-right-4-2" style="width:80%;float:left;">
十字紋 / A37-十字紋淺米白
<br/>[無填寫]
<br/>無需
</div>
</div>
<div style="clear:both;"></div>
<div class="img-Phone" style="width:100%;background-color:yellow;">
<img style="max-width:30%; float:left;" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSIkkJlwgDZDonmGAYOJgB0_895j4ocX-9gCxgLc90rLgOJHaNA" />
<img style="max-width:30%; float:right; margin-right:20%;" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcSIkkJlwgDZDonmGAYOJgB0_895j4ocX-9gCxgLc90rLgOJHaNA" />
</div>
</div>
<div class="right-div">
<div id="div9">
<div class="text" style="/*margin-top:20px;*/ font-size:15px;">
CUSTOM ORDERS
</div>
<div class="number" style="/*margin-top:30px;*/">
<div id="text-2-2" class="text" style="font-family:'Microsoft JhengHei';">
20140912
</div>
<div class="line">
</div>
<div id="text-3-2" class="text" style="font-family:'Microsoft JhengHei';">
A140912001
</div>
<div class="big-div">
<div class="button">
<div class="title-1">
經銷商資訊
</div>
</div>
<div class="label">
<div class="label1">
<div id="big-text" style="width:100%; margin-top:25px;">
<div class="txt-left" style="float:left;">
門市名稱
</div>
<div class="txt-right">
神腦西門武昌店
</div>
</div>
<div style="clear:both;"></div>
<div class="line2">
</div>
</div>
<div class="label2">
<div id="big-text-2" style="width:100%; margin-top:25px;">
<div class="txt-left" style="float:left;">
聯絡電話
</div>
<div class="txt-right">
02-23610707
</div>
</div>
<div style="clear:both;"></div>
<div class="line2">
</div>
</div>
<div class="label3">
<div id="big-text-3" style="width:100%; margin-top:25px;">
<div class="txt-left" style="float:left;">
聯絡地址
</div>
<div class="txt-right">
台北市萬華區武昌街2段58號
</div>
</div>
<div style="clear:both;"></div>
<div class="line2">
</div>
</div>
</div>
<div class="sign">
<div class="img-f">
<img src="img2.png" style="width:40%;" />
</div>
<div class="sign-r">
<div class="text-7">經辦人確認 \/</div>
<div class="line3"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="clear:both;"></div>
<div class="footer">
<div class="left-footer">
- 客戶存聯 - 訂做商品下單後約30 天交件
</div>
<div class="copy-text">
COPYRIGHT 2014 PTOW KING CO. LTD ALL RIGHTS RESEARVED
</div>
</div>
</body>
</html>
Please check all
it is displaying like that because a web view of x-code is much smaller than a computers screen so to substitute it formats and registers it and makes it into 2-pages, there is nothing weird about it its just the way it is.