I've come up with a non-frame version of this site: http://www.lauradenyes.com/
However, the owner doesn't like my version because the content in the
center sits too high in the center part, which wasn't a problem with
the frames.
The advantage of frames is that you can have a height based on a
percent of the frame, even when the frame takes up less than 100% of
the window. I'm trying to figure out how to do this CSS. I tried
setting padding:10% but the CSS read the 10% to be 10% of the whole
window, not the enclosing element.
The thing is, my design looked reasonable on monitors supporting
average sizes (1000 x 800) but she has a huge monitor and she likes to
look at the site with her window maximized.
If you look at the site you'll see the center frame is a gray area in
the middle. I recreated that as a DIV in the non-frame version. Is
there a way to get CSS to set padding based on a percent of just the
element that the padding is being applied to? 6 3650 lk******@geocit ies.com wrote: I've come up with a non-frame version of this site:
http://www.lauradenyes.com/
However, the owner doesn't like my version because the content in the center sits too high in the center part, which wasn't a problem with the frames.
Hard to tell exactly what you are talking about without an url.
If you look at the site you'll see the center frame is a gray area in the middle. I recreated that as a DIV in the non-frame version. Is there a way to get CSS to set padding based on a percent of just the element that the padding is being applied to?
See if this helps: http://www.student.oulu.fi/~laurirai/www/css/middle/
--
Spartanicus
"Spartanicu s" <in*****@invali d.invalid> wrote in message
news:1u******** *************** *********@news. spartanicus.utv internet.ie... lk******@geocit ies.com wrote:
I've come up with a non-frame version of this site:
http://www.lauradenyes.com/
However, the owner doesn't like my version because the content in the center sits too high in the center part, which wasn't a problem with the frames.
Hard to tell exactly what you are talking about without an url.
If you look at the site you'll see the center frame is a gray area in the middle. I recreated that as a DIV in the non-frame version. Is there a way to get CSS to set padding based on a percent of just the element that the padding is being applied to?
See if this helps: http://www.student.oulu.fi/~laurirai/www/css/middle/
-- Spartanicus
I've always just remade my own h1 and h2 and h3s, call them something else,
to get rid of the spacing problem. Then, all I do is add padding-top just
enough to center everything up. none of that line-height stuff, just a
little pad at the top to push it down to center.
www
"Baldy" <Ba***@poof.com > wrote: I've always just remade my own h1 and h2 and h3s, call them something else, to get rid of the spacing problem.
What does this have to do with the thread?
I hope that by the above you are not referring to using divs instead of
headers. If so then you've completely missed the point about, and
purpose of markup and styling.
--
Spartanicus
> I've always just remade my own h1 and h2 and h3s, call them something else, to get rid of the spacing problem. Then, all I do is add padding-top just enough to center everything up. none of that line-height stuff, just a little pad at the top to push it down to center.
I think you missed the point of my question. Putting a little padding
on top is leading to unsatisfactory results. If you look at www.lauradenyes.com on a screen that is, say, 2400 by 1600 pixels,
you'll see the items in the center floating too high on the screen.
Giving the padding a percent doesn't fix the problem, as the right
adjustment on a huge monitor remains too much on a smaller monitor.
What would be nice if there was a way to say "Pad top by 20% of the
containing element". You can do that with frames, which was one
advantage of the old design.
>> See if this helps: http://www.student.oulu.fi/~la urirai/www/css/middle/
That is crazy, jumbled up tutorial but, despite its weaknesses, I found
it utterly fascinating. I said "Wow" quite a few times. Where did you
find this stuff? Is this all CSS 3 or what? I'd never heard of
display:table-cell or quite a bit of the other stuff you mention. lk******@geocit ies.com wrote: See if this helps: http://www.student.oulu.fi/~la urirai/www/css/middle/
That is crazy, jumbled up tutorial but, despite its weaknesses, I found it utterly fascinating. I said "Wow" quite a few times. Where did you find this stuff? Is this all CSS 3 or what? I'd never heard of display:tabl e-cell or quite a bit of the other stuff you mention.
It's not my page and I haven't looked at it, but I trust the author to
supply correct information.
I presume that all the information given relates to CSS 2.1, but note
that IE has limited support for CSS 2.1. For example the display:table
family of property values is not supported by IE.
--
Spartanicus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric |
last post by:
According to my book, the padding property is defined for all elements.
However, when I set the property for the element <A>, only the left the
right padding is applied and not the top and bottom padding.
I checked a couple of other browsers and couldn't find any that
implemented top and bottom padding for the <A> element, assuming I have
done it correctly.
#bar A
{
|
by: Stanimir Stamenkov |
last post by:
Here are two cases regarding inline-level elements' line-height,
padding and background, which I doesn't understand:
<div style="background: black; color: white; line-height: 1.5">
<span>Abc</span>
<span style="background: white; color: black; line-height:
3">Abc</span>
<span>Abc</span>
</div>
|
by: Knoxy |
last post by:
Hello, I've noticed one or two people post on this before but nobody
seems to have replied so raising the issue again... is this a known
IE6 CSS bug?
I have placed the following in my stylesheet file:
..formContentTable
|
by: lawrence |
last post by:
How is it possible that the question "How do I detect which browser
the user has" is missing from this FAQ:
http://www.faqts.com/knowledge_base/index.phtml/fid/125
and is only here on this with a link to old information that suggests
use of "navigator":
http://developer.irt.org/script/43.htm
|
by: D. Alvarado |
last post by:
Hello,
I am trying to open a window containing an image and I would like
the image to be flush against the window -- i.e. have no padding or
border. Can I make this happen with a single call to a window.open
function? I would prefer not to create a separate HTML page. So far
all I have is the basic
var cwin = window.open('images/KJV-THANKS.gif',
'Thanks', 'width=243,height=420,');
cwin.focus();
| |
by: phil-news-nospam |
last post by:
Here is a simpler (no drop shadows) example of the padding bug I see:
http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html
So far I find nothing in the CSS2 document that says I should get this
kind of inconsistent result.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
|
by: sllrphoto |
last post by:
A veteran of early html, I've modified my blog template and made it
look rather clean (albeit rather plain) when viewed with IE.
Ironically, I'm a big Firefox fan, but when viewed in FF, my blog
leaves a lot to be desired.
The blog (which is at http://lazycomic.blospot.com/ ) is a basic two
column style, with the right column being the one that's giving me the
problems.
|
by: webEater |
last post by:
I have a problem, it's not browser specific, and I don't get a
solution. I have an (X)HTML document, I show you a part of it:
....
<!--<div class="pad">-->
<div id="eventImages"><img src="" id="eventImage0"
class="eventImage"><img src="" id="eventImage1"
class="eventImage"></div>
|
by: aarklon |
last post by:
Hi all,
arrays are guaranteed to be contiguous with no padding before or
after any array member , but what about enums ..???
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |