Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2013, 07:15 AM   #1
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
Multiple Div Tags in Fixed Layout Epub

I seem to have trouble when I include multiple div tags on one page of a fixed layout epub. I am using a div class to select and format all the items on one page, and then other div tags to format particular sections of that page. Often things seem to break down with the third div tag. Is there some rule about using classes or IDs to distinguish different divs inside another div?
verydeepwater is offline   Reply With Quote
Old 01-23-2013, 02:19 PM   #2
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
as long as your html/css is in order you shouldn't have any problems with the number of elements on a page. if you can post your code without violating copyright you'd have a better chance of someone being able to help you diagnose the problem, though.
mzmm is offline   Reply With Quote
Advert
Old 01-24-2013, 06:18 AM   #3
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
If I use the third div tag the page does not format as wanted. The caption appears at the top of the page instead of lower down and I can't control the large para of text in the middle of the page. If instead of using the third dive tag, I use the html 5 tag - article - for the large para - everything appears as wanted. Any help would be greatly appreciated.

Here is the code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta name="viewport" content="width=857,height=1241"></meta>
<meta content="text/html; charset=UTF-8"></meta>
<title>PlaceholderText</title>
<link href="css/styles.css" type="text/css" rel="stylesheet"></link>
</head>

<body>
<div class="page01">
<img src='images/page01.jpg' alt='water-balanced clift lift'/>
<h1>PlaceholderText</h1>

<div class="left">
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p> Lorem Ipsu</p>
<p>Lorem Ipsu</p>
</div>

<div class="right">
<p>Lorem Ipsum</p>
<p><span class="redcolour"> 1bbbbbb</span> <span class="bluecolour">(Lorem Ipsum</span></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
<p>Lorem Ipsu Lorem Ipsum is simply dummy text of the printing and typesetting </p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the </p>
</div>

<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem IpsumLorem Ipsum is simply dummy </div>

<p id="caption"> Lorem Ipsum is simply dummy text of the printing</p>

</div>
</body>

</html>

Here is the CSS
}
.page01 .left {
position: absolute;
top: 105px;
left: 65px;
height: auto;
width: 110px;
height: auto;
}
.page01 .left p {
color: #1d57eb;
font-size: 16px;
font-weight: bold;
line-height: 19px;
font-style: normal;
text-align: right;
margin-bottom: -10px;
}
.page01 .right {
position: absolute;
top: 105px;
left: 190px;
height: auto;
width: 597px;
}
.page01 .right p {
font-size: 16px;
font-weight:normal;
line-height: 19px;
font-style: normal;
text-align: left;
margin-bottom: -10px;
}
.page01 .article {
position: absolute;
top: 420px;
left: 90px;
width: 708px;
}
.page01 .article p {
font-size:18px;
font-weight: normal;
height: auto;
line-height: 28px;
font-style: italic;
}
.page01 #caption {
position: absolute;
top: 620px;
left: 470px;
width: 360px;
color: #000000;
font-size: 16px;
font-weight: normal;
height: auto;
line-height: 28px;
font-style: italic;
}
verydeepwater is offline   Reply With Quote
Old 01-24-2013, 06:19 AM   #4
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
If I use the third div tag the page does not format as wanted. The caption appears at the top of the page instead of lower down and I can't control the large para of text in the middle of the page. If instead of using the third dive tag, I use the html 5 tag - article - for the large para - everything appears as wanted. Any help would be greatly appreciated.

Here is the code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta name="viewport" content="width=857,height=1241"></meta>
<meta content="text/html; charset=UTF-8"></meta>
<title>PlaceholderText</title>
<link href="css/styles.css" type="text/css" rel="stylesheet"></link>
</head>

<body>
<div class="page01">
<img src='images/page01.jpg' alt='water-balanced clift lift'/>
<h1>PlaceholderText</h1>

<div class="left">
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p>Lorem Ipsu</p>
<p> Lorem Ipsu</p>
<p>Lorem Ipsu</p>
</div>

<div class="right">
<p>Lorem Ipsum</p>
<p><span class="redcolour"> 1bbbbbb</span> <span class="bluecolour">(Lorem Ipsum</span></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. </p>
<p>Lorem Ipsu Lorem Ipsum is simply dummy text of the printing and typesetting </p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the </p>
</div>

<div class="article">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem IpsumLorem Ipsum is simply dummy </div>

<p id="caption"> Lorem Ipsum is simply dummy text of the printing</p>

</div>
</body>

</html>

Here is the CSS
}
.page01 .left {
position: absolute;
top: 105px;
left: 65px;
height: auto;
width: 110px;
height: auto;
}
.page01 .left p {
color: #1d57eb;
font-size: 16px;
font-weight: bold;
line-height: 19px;
font-style: normal;
text-align: right;
margin-bottom: -10px;
}
.page01 .right {
position: absolute;
top: 105px;
left: 190px;
height: auto;
width: 597px;
}
.page01 .right p {
font-size: 16px;
font-weight:normal;
line-height: 19px;
font-style: normal;
text-align: left;
margin-bottom: -10px;
}
.page01 .article {
position: absolute;
top: 420px;
left: 90px;
width: 708px;
}
.page01 .article p {
font-size:18px;
font-weight: normal;
height: auto;
line-height: 28px;
font-style: italic;
}
.page01 #caption {
position: absolute;
top: 620px;
left: 470px;
width: 360px;
color: #000000;
font-size: 16px;
font-weight: normal;
height: auto;
line-height: 28px;
font-style: italic;
}

Last edited by verydeepwater; 01-24-2013 at 06:20 AM. Reason: duplicated
verydeepwater is offline   Reply With Quote
Old 01-24-2013, 07:11 AM   #5
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
My apologies for posting the same post twice. Actually, I think I have answered my own question. I missed out a <p> tag here in the third div. It now seems to be working OK. I had some problems before with multiple div tags, but it looks as though it was probably simple errors in the code.
verydeepwater is offline   Reply With Quote
Advert
Reply

Tags
classes or ids, div tags, fixed layout

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed layout epub curiousgeorge ePub 3 01-18-2013 04:27 PM
ePub validation error - not liking div tags Kratos ePub 19 07-23-2012 11:14 AM
Touch How to created Fixed layout ePub in BN? bhuvana786 Barnes & Noble NOOK 4 06-01-2012 05:58 AM
Images as fixed layout epub Dillinquent ePub 6 06-10-2011 02:22 PM
Fixed-layout epub bhuvana786 ePub 2 04-07-2011 08:00 AM


All times are GMT -4. The time now is 12:30 AM.


MobileRead.com is a privately owned, operated and funded community.