Questions tagged [center-align]

Specifies the horizontal alignment of the content (eg: text) inside an element (eg:

)

Specifies the horizontal alignment of the content (eg: text) inside an element (eg: )

71 questions
0
votes
1 answer

Centering a group of items with CSS

I'm working on an app that has a group of icons in the footer of a column. Currently, the icons are left-justified. However, I'd like to make them centered. To demonstrate, I have a fiddle that can be found here. The HTML looks like the…
user3284007
  • 1,697
  • 7
  • 27
  • 43
0
votes
2 answers

Search Box within Navigation bar alignment issue

Hey i'm just learning programming and im trying to have my search bar always centered with the nav links to the right of it with-in the fixed navigation bar. I just can't seem to make it work. Here is my html and css. I appreciate the help!
ArcherDidot
  • 1
  • 1
  • 3
0
votes
1 answer

HTML5 centering a div on top of another div

I need to center a canvas div on top of an image div. I tried with #topCanvas { position:absolute; left:0; right:0; top:0; bottom:0; } and also with left/right-margin but did not succeed. Here is the JSFiddle -…
Prasoon
  • 435
  • 1
  • 9
  • 23
0
votes
3 answers

Website left aligned on iPad in Safari and Chrome

I am having problems with center alignment on iPad. it is not working properly in iPad Safari and iPad Chrome browser - i tried all advices that i found on web - but i found no solution to my case. My website is newgranatik.tw1.ru and problem in…
moonvader
  • 19,761
  • 18
  • 67
  • 116
0
votes
1 answer

Trying to place JS popup in center of page?

I have centered the popup on this website here, however, it's only on the x-axis. I also need to center it on the y-axis, but I can't seem to make it happen. Here's the JavaScript... function toggle(div_id) { var el =…
Millhorn
  • 2,953
  • 7
  • 39
  • 77
0
votes
2 answers

Firebug fixing same css?

CSS: .list-a .desc-fix { width: 180px; margin: 0px auto; position: relative; } .list-a .desc { background: url("../images/trans_black.png") repeat; display: block; font-family: arial; font-size: small; height: 18px; …
0
votes
2 answers

how to set div width so left and right padding is equal

I would like to have a div which contains multiple inner divs but so that the outer div has equal padding to the left and right. This is so I can have a liquid layout which when the window is resized the inner divs are the same distance from the…
user2486250
  • 3
  • 1
  • 2
0
votes
4 answers

How can I center this DIV (CSS/HTML)

I have a DIV that I would like centered. There is no defined width or length because the page is suppose to be versatile with all window sizes (as you re-size window, the page adjusts). I need to keep this, while centering the DIV. Here are photos…
John Doe
  • 21
  • 2
  • 11
0
votes
3 answers

Why won't my page center align?!

This is my first question on Stack Overflow, but I've pretty much learnt everything I know from this great website so I'm hoping you'll be able to help.... I have a very simple homepage which simply refuses to center align. It's basically just…
Makrobe Dnb
  • 41
  • 1
  • 5
-1
votes
1 answer

One line of text not aligning with the whole paragraph?

Im a bit of a n00b -- but usually figure out a solution. http://www.thisisclou.com/about The last line in the first paragraph will not align with the whole text group ?? my CSS: element.style { letter-spacing: 1.4px; margin-left: auto; margin-right:…
-2
votes
2 answers

Centering website content just isnt working?

i'm trying to center all of the products on this wordpress page so that everything is aligned centrally, i tried wrapping it all in a div with the following CSS but what this did was wrap the contents to the middle but the products are still left…
1 2 3 4
5