Open derekalvarado opened 10 years ago
Where is the CSS file?
Just pushed it. Sill learning Git branches...
I'm not sure. I added text-align to the box div, but it doesn't work. Figured you probably tried that anyway. You can check my branch if you like, I have text centered using innerhtml on the box element on mouseover. Not quite the same as you have it but maybe it'll give you a clue. I need to practice my JS more.
Hi I am not sure actually what you are trying to do because I did not pay attention this emails till now. I might be wrong but if you are trying to do to adjust the text in the box, please check my screen shot and see it helps! Have a good day.
Eindray
On Tue, Oct 14, 2014 at 8:48 AM, Josef Miller notifications@github.com wrote:
I'm not sure. I added text-align to the box div, but it doesn't work. Figured you probably tried that anyway. You can check my branch if you like, I have text centered using innerhtml on the box element on mouseover. Not quite the same as you have it but maybe it'll give you a clue. I need to practice my JS more.
— Reply to this email directly or view it on GitHub https://github.com/ACCAPTSO/TicTacToe.js/issues/2#issuecomment-59046672.
I'm not seeing your screenshot, but basically there are nine divs with CSS class="box" which serve as the boxes of the TTT board. Currently, with JavaScript, you can click on any box and an X wrapped in h1 tags will be appended to the div that was clicked. I believe I gave the h1 a class="XO". With CSS, I've been trying to make sure that it's centered inside the containing div, but currently it's left-aligned.
In style sheet changed : } .XO { /X's and O's: can't figure out how to center it/ display: block; margin-top: 40; <---------------- float: none; vertical-align:middle; }
and ADD
h1{ text-align: center; }
in HTML page, I changed this way
|
|
|
|
|
|
Arg, stylesheets. I can't figure out how to center the XO class within its containing div.