J
Julia Briggs
How do I construct a <iframe> or equivalent for FireFox/NS browsers,
inside a screen centered <div> tag? Can it be done?
inside a screen centered <div> tag? Can it be done?
Julia said:How do I construct a <iframe> or equivalent for FireFox/NS browsers,
inside a screen centered <div> tag? Can it be done?
mscir said:Does this work for you?
<style type="text/css">
.inline {
background-color: #FFAABB;
text-align: center;
height: 520px;
width: 520px;
}
.if1{
width: 500px;
height: 500px;
}
</style>
<div class="inline">
<iframe class="if1" SRC="http://www.google.com">
</iframe>
</div>
RobB said:Since this is a JS group, I assume you meant programmatically...
Julia said:Ok, how can I get that to auto-center as an absolute layer? I've tried
different ways, but can only get it to display in a fixed position.
Julia said:Ok, how can I get that to auto-center as an absolute layer?
Toby Inkster said:div.layer {
position: absolute;
left: 50%;
width: 200px;
margin-left: -100px;
}
Randy Webb wrote:
Why rely on a JS dependency when its not needed?
Ok, how can I get that to auto-center...
RobB said:Thought I covered that: "Since this is a JS group, I assume you meant
programmatically..."
Randy Webb said:Does that mean if they ask how to set the color of an element, in a JS
group, then you will give them a JS solution instead of an HTML/CSS
solution?
Just because a question is asked in a particular group does not mean
that the answer is necessarily the topic of that group.
But this message is not posted solely to c.l.j, it is also posted to
alt.html
Again, why rely on a JS dependency when its not needed?
How do I construct a <iframe> or equivalent for FireFox/NS browsers,
inside a screen centered <div> tag? Can it be done?
Does that mean if they ask how to set the color of an element, in a JS
group, then you will give them a JS solution instead of an HTML/CSS
solution?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.