Questions tagged [css]
CSS stands for Cascading Style Sheets and it is almost use for styling XML (Extensible Markup Language) and HTML (Hyper Text Markup Language) documents like fonts, layouts and colors.
29 questions
0
votes
1
answer
72
views
Gap showing between canvas element and div container
I am fleshing out a small desktop game that will be HTML5-based.
Grid zone 3 uses one canvas element, and that is placed correctly without any visible gaps between the edge of the canvas and the ...
0
votes
0
answers
97
views
How to add an HTML + CSS overlay to a DirectX app?
I'm looking for a way to render html and css elements within an executable as an overlay.
There are programs today made in electron such as Blitz or even the best known Discord. They do overlay within ...
2
votes
2
answers
898
views
How can I right-align elements in Unity's UI Toolkit scroll view?
I've tried a basic google search and am still having trouble with this one.
Unity encourages the use of UI Toolkit at this point, as opposed to their old system, so that's what I'm going with; I have ...
0
votes
1
answer
278
views
How do you make html elements not blurry
I was making a html game and all the elements are blurry is there a fix to this?
I use css but it makes it blurry
Code
...
0
votes
0
answers
103
views
Keyboard arrow Navigation
My crossword is a table made with <td> tags. The input boxes are textboxes (input="text"), styled with CSS. My question is how do you get the focus to the ...
1
vote
1
answer
127
views
What should i use as a board for my game? [closed]
I'm a beginning programmer and i need to make a game. The rough idea revolves around fleets fighting in turn based battles while you control your factions resources and manpower.
The original concept ...
1
vote
1
answer
2k
views
How do I make my character jump on a platform?
This is the code I've written so far:
Html:
...
3
votes
2
answers
918
views
How can I detect hex edges and corners for Catan map?
The following messy code implements a decent hex map, but I have no way to detect edges and corners:
...
2
votes
2
answers
168
views
Does pausing the canvas draw restores the FPS to higher value in a HTML5 game?
I set Frame Per Second of 60 for my game. But after 1 minute it gets to a significantly lower value - around 8 FPS.
Does pausing the canvas drawing restores the FPS to higher value? If it does, how ...
4
votes
2
answers
1k
views
Change screen dimensions in libgdx in HTML
Can i change the screen dimensions in libGDX in HTML?
If I inspect the element (the game) in Chrome and I change canvas width or height it changes the screen dimensions, but I don't know how to do it ...
1
vote
1
answer
124
views
How to manipulate browser pixels on different mobile devices
I'm creating a board game using HTML5, CSS3 and JavaScript. It's working fine on Desktop browsers properly. But when i load it on Windows phone it's not behaving properly. The resolutions and the game ...
0
votes
1
answer
675
views
How do I apply a Isometric tile to a Diamond shaped Div
I want to be able to apply my isometric tile
To a diamond shaped div
However I can't seem to create the isometric shaped div.
Closest I got to it was this http://jsfiddle.net/P3yKr/2/ but even then ...
4
votes
1
answer
3k
views
How can I add custom CSS to a Construct2 game?
I am making a simple game using Construct2. My problem is that Construct2 provides basic HTML buttons, but I want to put a background-image on my buttons.
To do ...
0
votes
1
answer
210
views
What strategies can I use to update the visuals of my game to be more modern? [closed]
I'm making a browser strategy game.
Now my problem is that I have a feeling that my design is dated.
For now I have only used background colors and borders to make things look nice, but I have ...
6
votes
1
answer
499
views
How can I convert OBJ data into CSS3D transformations?
I want to convert the data in a 3D .obj file (vertices, normals, faces) to CSS3D (width, height, rotateX,Y,Z and/or similar transforms). I found a bunch of ...