Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

1 vote
0 answers
463 views

Position and height of elements inside li

I currently have two problems with a list of links. First of all I need to display | button | | text | | button | side by side in the li. First button left hand side, then the text and the ...
JonSnow's user avatar
  • 527
-1 votes
1 answer
2k views

in header i need to place logo on the left and text exactly at the center of the page header

in header i need to place logo on the left and text exactly at the center of the page header . I have done it the following two ways 1) <div class="row" style="margin-bottom:2px;width:100%;text-...
Manasa Nelakuditi's user avatar
2 votes
1 answer
301 views

CSS Float:clear is not working with relative position

Float:clear is not working with an element with relative position around it. I have tried putting the float element in a div, changing display type of parent element. It does not work the expected ...
Taha Sk's user avatar
  • 67
-1 votes
1 answer
40 views

Trouble with CSS positioning

So I have this webpage: http://cmpt165.csil.sfu.ca/~jpadayat/exercise12/exercise12.html I need to make it look like this: https://courses.cs.sfu.ca/2016fa-cmpt-165-c0/pages/E12large/view I don't ...
Johnny Sack's user avatar
0 votes
2 answers
65 views

How can I align centered inline-block elements correctly?

http://jsfiddle.net/ytn6z8oo/ To see what the problem is, please resize the result window in jsfiddle so there are three items in a row. As you can see, the third item doesn't align with the others, ...
Simon Mathewson's user avatar
1 vote
1 answer
125 views

Make floating boxes fit empty space

I'm trying to make a layout where four boxes float and have different widths and heights. They are in a 2x2 grid. What I got so far works but has one case where it doesn't do what I need, and is ...
framundo's user avatar
  • 111
1 vote
1 answer
366 views

How to float blocks to opposite corners of text?

As shown in this jsfiddle, I would like to arrange 2 images into opposite corners of a page of text. The width and height of the body are adjustable. (If the user narrows his window, the text will ...
Ryan's user avatar
  • 24.2k
0 votes
1 answer
152 views

Fix image relative to a point on a scaling background

I am trying to fix an image to a certain point in the background image for a project. I've created a jsbin as I couldn't find the words to explain what I'm trying to accomplish. http://jsbin.com/...
Thiousi's user avatar
  • 63
0 votes
1 answer
155 views

Incredibly strange floating behavior

You're going to have to take a look at the Fiddle for this one The element I'm having trouble with, hoverHelper, is purposed to show next no matter what part of the body is hovered but only after the ...
Zach Saucier's user avatar
  • 26.1k
21 votes
2 answers
67k views

floating nav to the right with a fixed position? [closed]

My site navigation needs to be floated to the right side of the container, but be in a fixed position so that whenever the page scrolls, the navigation is still on the right 350px from the top. This ...
AMC's user avatar
  • 1,695
0 votes
0 answers
588 views

Lineup children side-by-side inside absolutely positioned parent?

My drop-down menu requires the use of position: absolute; for the dropdown. And inside the drop-down, I want to have menu items in multiple columns, like so (example): For that I could use either ...
its_me's user avatar
  • 11.4k
0 votes
1 answer
3k views

float divs inside position relative div

I have a div position relative (id container) and inside it i have other divs (class buttons) that have to be float: left; <div id="container"> <div class="buttons"></div> &...
pindol's user avatar
  • 2,110
0 votes
1 answer
4k views

Problems with UL in absolute or float, links not clickable

I have a javascript menu that I've produced using nested UL elements. When I set the nested UL to either use float with relative position, or to have absolute position with no float, the links in the ...
John's user avatar
  • 477