rgolden rgolden - 1 year ago 101
CSS Question

Tekken 7 website html hidden line of code

I've been referencing various professional website's html code as I try to write my own (I'm new to html, css, javascript etc.) and I noticed that if I view the site's code through the inspect element feature (ctrl+shift+c) they have the main body inside divs with id's and classes like wrapper, contents and inner, which is normal but then when trying to figure out how they had the wrapper centered by viewing the code normally through ctrl+u, I noticed that there is a line of code that exists in inspect element that isn't there when I view the code elsewhere. First of all, that code is this:

<div class="bgView" style="display: block; position: fixed; top: 0px;"></div>

So, could anyone tell me the reason for this?

The website:

Check line 79 for missing code.

Answer Source

This div is here to show this image http://www.tekken-official.jp/tk7ac/images/common/bg_main_09.jpg in background.

To find out, just reveal the div in the devtools and check out the styles panel.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download