emroki
11-09-2010, 07:36 PM
Full disclosure - I'm a total noob. I even had to look up the definition of noob to make sure I was using it correctly.
I want to change my Tumblr theme from a fluid layout to a fixed layout. I contacted the layout designer, but she had no clue. So I'm hoping you can help.
The site is: http://allbaby.tumblr.com
I'll post the code at the end.
What I have tried so far: Changing the % values to px values.
Problems with what I tried:
1) I can't seem to figure out the right px values to use to keep the columns proportional and centered.
2) Even when all the %s are gone, the right column and the header still act fluid. The left column and the center column appear to be fixed. This is driving me crazy. What am I missing?
Yes, I could choose another theme. But then I wouldn't learn anything.
If you have an answer for me, please be very specific in your answer, because I don't know nuthin'.
Thanks for your help. Here's the full original code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<meta name="color:Primary" content="#3EBAC2"/>
<meta name="color:Secondary" content="#F0586A"/>
<meta name="image:Background" content=""/>
<style type="text/css">
body {
background-color: white;
background-image: url({image:Background});
background-attachment: fixed;
font-family: Georgia;
font-size: 13px;
line-height: 20px;
color: #333;
text-wrap: normal;
word-wrap: break-word;
}
a {
color: {color:Primary};
text-decoration: none;
font-weight: normal;
}
a:hover {
color: {color:Secondary};
}
blockquote {
background-color: none;
font-style: italic;
font-size: 11px;
border-left: 2px solid #999999;
border-right: none;
border-top: none;
border-bottom: none;
margin: 0px;
padding-left: 4px;
padding-bottom: 0px;
padding-right: 0px;
padding-top: 0px;
line-height: 9px;
width: 90%;
}
.headerwrapper {
position: absolute;
top: 10px;
left: 15%;
right: 15%;
text-align: center;
text-wrap: normal;
word-wrap: break-word;
}
.header h1 {
font-size: 125px;
color: {color:Secondary};
font-weight: normal;
line-height: 50px;
font-family: Garamond;
}
.leftsidebar {
position: absolute;
top: 250px;
left: 10%;
width: 15%;
text-align: right;
color: #999;
}
.rightsidebar {
position: absolute;
top: 250px;
right: 10%;
width: 15%;
text-align: left;
color: #999;
}
.content {
position: absolute;
top: 250px;
left: 30%;
right; 30%;
width: 40%;
padding-bottom: 25px;
}
.entry {
border: 1px solid #CCC;
padding: 10px;
margin-bottom: 25px;
}
.entryheader {
background-color: #CCC;
margin: 0px;
padding: 2px;
color: white;
text-align: center;
font-family: Georgia;
letter-spacing: 2px;
font-size: 16px;
font-variant: small-caps;
}
h3 {
font-size: 24px;
text-align: center;
font-family: Garamond;
}
h4 {
border-bottom: 1px solid #CCC;
font-variant: small-caps;
padding-right: 15px;
padding-top: 0px;
padding-bottom: 1px;
margin-top: 0px;
margin-bottom: 5px;
text-align: right;
font-size: 15px;
font-family: Georgia;
font-weight: normal;
letter-spacing: 1px;
color: #666;
}
h5 {
border-bottom: 1px solid #CCC;
font-variant: small-caps;
padding-left: 15px;
padding-top: 0px;
padding-bottom: 1px;
margin-top: 0px;
margin-bottom: 5px;
text-align: left;
font-size: 15px;
font-family: Georgia;
font-weight: normal;
letter-spacing: 1px;
color: #666;
}
.quote {
font-size: 24px;
text-align: center;
font-family: Garamond;
color: {color:Secondary};
font-weight: normal;
}
.link {
font-size: 24px;
text-align: center;
font-family: Garamond;
font-weight: normal;
}
.source {
font-size: 14px;
letter-spacing; 2px;
color: #999;
}
.description {
font-size: 13px;
font-family: Georgia;
text-align: left;
}
ul li {
list-style-type: none;
}
ul li.odd {
color: {color:Text Hover};
}
ul li.even {
color: {color:Colored Text};
}
.label {
font-weight: bold;
}
.submit {
background-color: white;
color: #999;
border: 0px;
}
.input {
background-color: white;
color: #999;
font-family: monospace;
border: 1px solid #999;
}
.notes {
font-size: 12px;
font-weight: normal;
text-align: right;
}
{CustomCSS}
</style>
<title>{Title}</title>
</head>
<body>
<div class="leftsidebar">
<!-- Use H4 headers for this side -->
<!-- And add two break tags after each subcontent -->
<img src="{PortraitURL-128}"><br/><br/>
<h4>About</h4>
{Description}
<br/><br/>
<h4>Search</h4>
<form action="/search" method="get">
<input type="text" name="q" value="{SearchQuery}" class="input"/>
<input type="submit" value="Go" class="submit"/>
</form>
</div>
<div class="rightsidebar">
<!-- Use H5 headers for this side -->
<!-- And add two break tags after each subcontent -->
<h5>Navigation</h5>
+ <a href="{RSS}"> Subscribe </a><br/>
+ <a href="/archive"> Archive </a><br/>
+ <a href="/random"> Random </a><br/>
<br/>
<h5>Theme</h5>
Themed by <a href="http;//14thave.tumblr.com/">Monique Tendencia</a>. Powered by <a href="http://www.tumblr.com/">Tumblr</a>.
</div>
<div class="headerwrapper">
<div class="header">
<h1><a href="/">{Title}</a></h1>
</div>
</div>
<div class="content">
<div id="posts">
{block:Posts}
<div class="entryheader">
{block:Date}{Month} {DayOfMonthWithZero}, {Year} | {12HourWithZero}:{Minutes} {CapitalAmPm}{/block:Date} |
{block:NoteCount}
<a href="{Permalink}">{NoteCountWithLabel}</a>
{/block:NoteCount}
</div>
{block:Text}
<div class="post text"><div class="entry">
{block:Title}
<h3><a href="{Permalink}">{Title}</a></h3>
{/block:Title}
{Body}
</div></div>
{/block:Text}
{block:Photo}
<div class="post photo"><div class="entry">
{LinkOpenTag}<center><img src="{PhotoURL-400}" alt="{PhotoAlt}" border="0"/></center>{LinkCloseTag}
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Photo}
{block:Photoset}
<div class="post photoset"><div class="entry">
{Photoset-500}
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Photoset}
{block:Quote}
<div class="post quote"><div class="entry">
<div clas="quote">"{Quote}"</div>
{block:Source}
<div class="source"><br/>{Source}</div>
{/block:Source}
</div></div>
{/block:Quote}
{block:Link}
<div class="post link"><div class="entry">
<a href="{URL}" {Target}><span class="link">{Name}</span></a>
{block:Description}
<div class="description">{Description}</div>
{/block:Description}
</div></div>
{/block:Link}
{block:Chat}
<div class="post chat"><div class="entry">
{block:Title}
<h3><a href="{Permalink}">{Title}</a></h3>
{/block:Title}
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="label">{Label}</span>
{/block:Label}
{Line}
</li>
{/block:Lines}
</ul>
</div></div>
{/block:Chat}
{block:Video}
<div class="post video"><div class="entry">
<center>{Video-400}</center>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Video}
{block:Audio}
<div class="post audio"><div class="entry">
<center>{AudioPlayerGrey}</center>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Audio}
{/block:Posts}
</div>
<center>
{block:Pagination}
{block:PreviousPage}
<a href="{PreviousPage}">« New</a>
{/block:PreviousPage}
<big>{CurrentPage} of {TotalPages}</big>
{block:NextPage}
<a href="{NextPage}">Old »</a>
{/block:NextPage}
{/block:Pagination}
</center>
</div>
</body>
</html>
I want to change my Tumblr theme from a fluid layout to a fixed layout. I contacted the layout designer, but she had no clue. So I'm hoping you can help.
The site is: http://allbaby.tumblr.com
I'll post the code at the end.
What I have tried so far: Changing the % values to px values.
Problems with what I tried:
1) I can't seem to figure out the right px values to use to keep the columns proportional and centered.
2) Even when all the %s are gone, the right column and the header still act fluid. The left column and the center column appear to be fixed. This is driving me crazy. What am I missing?
Yes, I could choose another theme. But then I wouldn't learn anything.
If you have an answer for me, please be very specific in your answer, because I don't know nuthin'.
Thanks for your help. Here's the full original code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="shortcut icon" href="{Favicon}">
<link rel="alternate" type="application/rss+xml" href="{RSS}">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<meta name="color:Primary" content="#3EBAC2"/>
<meta name="color:Secondary" content="#F0586A"/>
<meta name="image:Background" content=""/>
<style type="text/css">
body {
background-color: white;
background-image: url({image:Background});
background-attachment: fixed;
font-family: Georgia;
font-size: 13px;
line-height: 20px;
color: #333;
text-wrap: normal;
word-wrap: break-word;
}
a {
color: {color:Primary};
text-decoration: none;
font-weight: normal;
}
a:hover {
color: {color:Secondary};
}
blockquote {
background-color: none;
font-style: italic;
font-size: 11px;
border-left: 2px solid #999999;
border-right: none;
border-top: none;
border-bottom: none;
margin: 0px;
padding-left: 4px;
padding-bottom: 0px;
padding-right: 0px;
padding-top: 0px;
line-height: 9px;
width: 90%;
}
.headerwrapper {
position: absolute;
top: 10px;
left: 15%;
right: 15%;
text-align: center;
text-wrap: normal;
word-wrap: break-word;
}
.header h1 {
font-size: 125px;
color: {color:Secondary};
font-weight: normal;
line-height: 50px;
font-family: Garamond;
}
.leftsidebar {
position: absolute;
top: 250px;
left: 10%;
width: 15%;
text-align: right;
color: #999;
}
.rightsidebar {
position: absolute;
top: 250px;
right: 10%;
width: 15%;
text-align: left;
color: #999;
}
.content {
position: absolute;
top: 250px;
left: 30%;
right; 30%;
width: 40%;
padding-bottom: 25px;
}
.entry {
border: 1px solid #CCC;
padding: 10px;
margin-bottom: 25px;
}
.entryheader {
background-color: #CCC;
margin: 0px;
padding: 2px;
color: white;
text-align: center;
font-family: Georgia;
letter-spacing: 2px;
font-size: 16px;
font-variant: small-caps;
}
h3 {
font-size: 24px;
text-align: center;
font-family: Garamond;
}
h4 {
border-bottom: 1px solid #CCC;
font-variant: small-caps;
padding-right: 15px;
padding-top: 0px;
padding-bottom: 1px;
margin-top: 0px;
margin-bottom: 5px;
text-align: right;
font-size: 15px;
font-family: Georgia;
font-weight: normal;
letter-spacing: 1px;
color: #666;
}
h5 {
border-bottom: 1px solid #CCC;
font-variant: small-caps;
padding-left: 15px;
padding-top: 0px;
padding-bottom: 1px;
margin-top: 0px;
margin-bottom: 5px;
text-align: left;
font-size: 15px;
font-family: Georgia;
font-weight: normal;
letter-spacing: 1px;
color: #666;
}
.quote {
font-size: 24px;
text-align: center;
font-family: Garamond;
color: {color:Secondary};
font-weight: normal;
}
.link {
font-size: 24px;
text-align: center;
font-family: Garamond;
font-weight: normal;
}
.source {
font-size: 14px;
letter-spacing; 2px;
color: #999;
}
.description {
font-size: 13px;
font-family: Georgia;
text-align: left;
}
ul li {
list-style-type: none;
}
ul li.odd {
color: {color:Text Hover};
}
ul li.even {
color: {color:Colored Text};
}
.label {
font-weight: bold;
}
.submit {
background-color: white;
color: #999;
border: 0px;
}
.input {
background-color: white;
color: #999;
font-family: monospace;
border: 1px solid #999;
}
.notes {
font-size: 12px;
font-weight: normal;
text-align: right;
}
{CustomCSS}
</style>
<title>{Title}</title>
</head>
<body>
<div class="leftsidebar">
<!-- Use H4 headers for this side -->
<!-- And add two break tags after each subcontent -->
<img src="{PortraitURL-128}"><br/><br/>
<h4>About</h4>
{Description}
<br/><br/>
<h4>Search</h4>
<form action="/search" method="get">
<input type="text" name="q" value="{SearchQuery}" class="input"/>
<input type="submit" value="Go" class="submit"/>
</form>
</div>
<div class="rightsidebar">
<!-- Use H5 headers for this side -->
<!-- And add two break tags after each subcontent -->
<h5>Navigation</h5>
+ <a href="{RSS}"> Subscribe </a><br/>
+ <a href="/archive"> Archive </a><br/>
+ <a href="/random"> Random </a><br/>
<br/>
<h5>Theme</h5>
Themed by <a href="http;//14thave.tumblr.com/">Monique Tendencia</a>. Powered by <a href="http://www.tumblr.com/">Tumblr</a>.
</div>
<div class="headerwrapper">
<div class="header">
<h1><a href="/">{Title}</a></h1>
</div>
</div>
<div class="content">
<div id="posts">
{block:Posts}
<div class="entryheader">
{block:Date}{Month} {DayOfMonthWithZero}, {Year} | {12HourWithZero}:{Minutes} {CapitalAmPm}{/block:Date} |
{block:NoteCount}
<a href="{Permalink}">{NoteCountWithLabel}</a>
{/block:NoteCount}
</div>
{block:Text}
<div class="post text"><div class="entry">
{block:Title}
<h3><a href="{Permalink}">{Title}</a></h3>
{/block:Title}
{Body}
</div></div>
{/block:Text}
{block:Photo}
<div class="post photo"><div class="entry">
{LinkOpenTag}<center><img src="{PhotoURL-400}" alt="{PhotoAlt}" border="0"/></center>{LinkCloseTag}
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Photo}
{block:Photoset}
<div class="post photoset"><div class="entry">
{Photoset-500}
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Photoset}
{block:Quote}
<div class="post quote"><div class="entry">
<div clas="quote">"{Quote}"</div>
{block:Source}
<div class="source"><br/>{Source}</div>
{/block:Source}
</div></div>
{/block:Quote}
{block:Link}
<div class="post link"><div class="entry">
<a href="{URL}" {Target}><span class="link">{Name}</span></a>
{block:Description}
<div class="description">{Description}</div>
{/block:Description}
</div></div>
{/block:Link}
{block:Chat}
<div class="post chat"><div class="entry">
{block:Title}
<h3><a href="{Permalink}">{Title}</a></h3>
{/block:Title}
<ul class="chat">
{block:Lines}
<li class="{Alt} user_{UserNumber}">
{block:Label}
<span class="label">{Label}</span>
{/block:Label}
{Line}
</li>
{/block:Lines}
</ul>
</div></div>
{/block:Chat}
{block:Video}
<div class="post video"><div class="entry">
<center>{Video-400}</center>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Video}
{block:Audio}
<div class="post audio"><div class="entry">
<center>{AudioPlayerGrey}</center>
{block:Caption}
<div class="caption">{Caption}</div>
{/block:Caption}
</div></div>
{/block:Audio}
{/block:Posts}
</div>
<center>
{block:Pagination}
{block:PreviousPage}
<a href="{PreviousPage}">« New</a>
{/block:PreviousPage}
<big>{CurrentPage} of {TotalPages}</big>
{block:NextPage}
<a href="{NextPage}">Old »</a>
{/block:NextPage}
{/block:Pagination}
</center>
</div>
</body>
</html>