Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

i have a theme, in that i dont have a static home page, my latest posts is my home page, but i want to add a drop-down box which i have coded on my starting home page, which should remain static(just for home section), for this i tried to code it in index.php, but the problem is the box outside that(i dont know what it is said) is not coming, i mean that the post is wrapped in a box content, same i want for my drop-down menu just check this image, check for HELLO text

http://i55.tinypic.com/bgvkgx.jpg

normally it is coming in simple line, but i want it to be wrapped in a box, like the posts

i know i just need to put a small div and p tag but i tried, maybe my position is wrong, can anyone help me here

share|improve this question
What have your written so far? You're going to have to show some code if you want to get good help. – John Conde Dec 4 '10 at 14:28

1 Answer

up vote 1 down vote accepted

Using a tag might solve your problem, however the tag automatically puts in a line-return or break (
). I would suggest either positioning the tag absolutely (Using position: absolute; in CSS), then float it right (Using float: right;).

Basically:

#div_el{
  position: absolute;
  float: right;
  }

Should help a bit.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.