I can never remember where apache2ctl is stored, so here is the full graceful restart command:
sudo /usr/sbin/apache2ctl -k graceful
Tuesday, May 12, 2009
Robust well-behaved DIVs
As my web expertise has been dragged kicking and screaming into the 21st century, I've more-or-less had to move away from nice, reliable and robust table-based layouts to DIV-based layouts that are anything but.
One of my bugbears is the general failure of a outer DIV to 'go around' any nested DIVs... or frankly, any other tags at all. So if I want have a right-aligned ('floated') P tag and I want it in a grey box with a blue border, my intuition says, 'Put it in a DIV with a grey background and a blue border'. This appears not to work out of the box (so to speak), with internet explorer at least... IE will generally display a blue line with the P text underneath it.
Having spent countless hours trying to figure this out, here are some tips that might help make the darkness a little less dark:
DIV
{
overflow: auto;
border: solid 1px blue;
background: silver;
}
If you are floating the DIV anywhere (for 20th-C websmiths, this is a bit like 'align'), and things are not working, it try setting the width attribute as well:
DIV
{
width: 30%;
float: right;
}
I hope this helps someone. I suspect it might help me one day too.
One of my bugbears is the general failure of a outer DIV to 'go around' any nested DIVs... or frankly, any other tags at all. So if I want have a right-aligned ('floated') P tag and I want it in a grey box with a blue border, my intuition says, 'Put it in a DIV with a grey background and a blue border'. This appears not to work out of the box (so to speak), with internet explorer at least... IE will generally display a blue line with the P text underneath it.
Having spent countless hours trying to figure this out, here are some tips that might help make the darkness a little less dark:
DIV
{
overflow: auto;
border: solid 1px blue;
background: silver;
}
If you are floating the DIV anywhere (for 20th-C websmiths, this is a bit like 'align'), and things are not working, it try setting the width attribute as well:
DIV
{
width: 30%;
float: right;
}
I hope this helps someone. I suspect it might help me one day too.
Subscribe to:
Posts (Atom)