PDA

View Full Version : New Question: How to line up divs?


misstheresa2009
02-02-2010, 11:26 PM
Hello Again,

I just inserted a div inside of an editable area in order to insert a twitter box inside of my home page. I would like to add some text to the right of this div but the text lines up within the twitter div. I tried creating another div but it won't butt up along side of the twitter div. Here is the code:

<div id="site_layout_content">
<div id="site_layout_twitter"><script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'list',
rpp: 30,
interval: 6000,
title: 'Stay Updated!',
subject: 'Dee\'s',
width: 150,
height: 150,
theme: {
shell: {
background: '#dda0dd',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#444444',
links: '#93a43b'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: false,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setList('deesfinedesigns', '').start();
</script>
<p>&nbsp;</p>
<blockquote>
<blockquote>
<blockquote>
<p>&nbsp;</p>
</blockquote>
</blockquote>
</blockquote>
</div>
</div>

BTW, I tried using an Ap div but that didn't work.

edbr
02-03-2010, 12:15 AM
how did you create the divs?
if you float both left they will appear in line , dont use absolute for this you may run into problems

misstheresa2009
02-03-2010, 12:42 AM
It worked! Thanks! When I changed the twitter div everything lined up perfectly.