last day (14 days later) » 

4:00 AM
1
A: Image not rendering when appending it with javascript

Rob R var circle = document.createElement("img"); circle.innerHTML = "src='Circle.png'" should be: var circle = document.createElement("img"); circle.src = 'Circle.png'; The circle is an image so it doesn't have any property called innerHTML. It uses the 'src' attribute howev...

 
Thanks alot! It draws the circle now... But i'm now having the problem that the image completely distorts the entire of the table, more specificly, amplifiying the table segmenent that its placed in... is there a way that i can draw the circle in and it not interacting with any other element?
 
Tables are elastic by nature, they will stretch to fit whatever content you place in them. You can provide a set dimensions for the image though.
 
I mean, I want it so the circle dosent interact with the rest of the table AT ALL
 
Correct. That should do the trick.
 
Even when i set my circle.height / width, the whole table still distorts
 
4:00 AM
Can you post something I can take a look at?
So this table cell is now ~226px x ~226px. Unless all your other table cells are the same dimensions, then yes it will look distorted.
 
How can i make it so all the tables are the same size?
THis is what i am seeing when circle.height and circle.width are at 26 prntscr.com/689lku
 
Hey
I would just get all the content you need placed in , and then worry more about the specific styling.
You may just need to set some specific widths and heights on the table cells.
Best of luck
 
ok hello?
I'm new to this so sorry if i'm a bit nooby
oh. ok
thanks
:)
 

last day (14 days later) »