make a correction and it now works in IE and firefox. I Sorry made corrections - gave the container a height and rather than put a div around the image I used the img selector.
An issue would be the width percentage... for instance if i set it to 22% then it might force the image down below, is...
fair point, this is the code that I came up with...
it's look ok, is there anything obviously wrong with it?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
#container {
width...
If I used 3 div's should I not also put the image in a div and have a fourth div?
should I put a percentage on the div's
with the links going down horizontally should I use a list menu?
how would the code look?
thanks.
This is a layout that I am trying to create http://www.amiwired.com/layout/layout2.htm
Not too sure about how to go about this.
Should I use a container div and 2 div's within, one for the links and one for the image?
Should I float the image or use it as a background for the div?
How should...
I read "IE5/Win incorrectly applies the CSS "text-align" attribute to block-level elements. Declaring "text-align:center" for the containing block-level element (often the BODY element) horizontally centers the box in IE5/Win....Declaring "text-align:center" for the containing block-level...
Why does the code below produce two different pages.
IE seems to work fine and put a border around the div.container that houses the div.box's while Firefox just has a line across the top.
You can see what I mean http://www.amiwired.com/layout/layout.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD...
ok that's correct, the reason I overlooked that was simply because the image was top left and there was no padding visible between the image and the border. I hadn't thought that the image would be the background for the padding as well.
How about the other issue of the vertical-align: bottom;?
Couple of questions, why does the header div appear to be alot more than 640px? When I ran another test and included a 468x60 image there's alot of space in the div?
Another question is why does the vertical-align not work?
#header {
width: 640px;
height: 92px;
margin: 0 auto...
I'd appreciate any help on how to create a page layout using CSS that looked like this image
http://www.amiwired.com/layout/layout.htm
The div's should be about 35% each with a gap between.
thanks.
thanks for that dotnetgnat,
but one of the problems is trying to insert the line break into the database and why any text after the line break isnt inserted.
any ideas?
I ran a test with a form and the code below, when I entered text into the form and clicked the enter button for a line break and then entered some more text, I noticed that only the first piece of text was entered into the database
tarea=Replace(Request.form("textarea")
sSQL="INSERT INTO...
How could we crop the first paragraph of our news that comes from a database.
Would we look for the first a full stop with a couple of spaces after it? or would there be other considerations?
Below are my two pages, a form posting to another page.
In the hidden field I have the value 222!
----------
form.asp
----------
<form name="form1" method="post" action="form_receive.asp">
<input name="test" type="hidden" value="222!">
<input type="submit" name="Submit" value="Submit">...
When people sometimes post from our form to our database their entries show up something like this
joke%2C books%2C
Can anyone shed any light on this and how to solve it.
I thought that this would only be relevant when the form used the get method to post through the querystring?
just wanted to make sure that the cotent holder was the maximum amount for everything that it contained.
If the box inside box is too big it'll just expand the outer box..
thanks
If this is my container
div#AdsContainer
{
border:solid 2px #8DA6CE;
background:#EEF3FB;
width:160px;
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
}
and I want to have a box within the container then is the code below correct? ie with the width set to 152px?
.Ads1
{
border:solid 1px...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.