There's a larger gap between the navlinks div and the subsequent div, how can I adjust the gap?
CSS
#navlinks ul {list-style-type:none;margin-left:3px;padding:0;margin-top:0;margin-bottom:0;}
HTML
<div id="navlinks">
<ul>
<li><a href="/default.asp">test</a></li>
<li><a...
In relation to http://bluerobot.com/web/layouts/view_css.asp?layout=layout1
and the CSS code below
#Content {
margin:0px 50px 50px 200px;
padding:10px;
}
Does this create relative positioning in relation to the menu? and does position:relative not have to be used and why not?
thanks.
Below is my code, I've done a bit of research on this and can't seem to find an answer. When I run the page the list actually sits out from the viewport, how can I get it right on or beside the left hand side.
css
ul {list-style-type:none;margin-left:0;padding-left:0}
li...
I get slightly confused sometimes with position:relative
Here's an example http://www.wpdfd.com/editorial/basics/mypage10.html
"background-color: #c9ebe3; position: relative; height: 50px; padding:10px"
Wouldn't it have been just as easy to not have used position:relative;? Isn't this just a...
should I use both server.htmlencode and an SQL injection protection function for every text field and textarea that a visitor can enter info into?
An example would be a user registration form
I created a form that lets visitors input text. Unfortunately it is being abused.
So I used myvar=server.htmlencode("Request.form("textarea"))
and then inserted it into the database.
However I thought this would have stopped malicious input though someone was able to insert html tags including...
i came across this code
<%
Dim FifteenAgo
Dim FifteenFromNow
fifteenAgo=DateAdd("n",-15,Now())
fifteenFromNow=DateAdd("n",15,Now())
SQL="SELECT * FROM table WHERE fieldValue>= fifteenAgo AND fieldValue<=fifteenFromNow"
Should there be the # delimiters in this code
Just a minor issue,
Before I insert a date into an Access database I am trying to convert to the format YYYY-MM-DD.
Is 1964-7-16 treated exactly the same as 1964-07-16? or should I add 0 to the 7 and then insert?
Both these SQL statements work one has the ' as delimiters, which one has the right syntax?
SELECT * FROM tblTable WHERE GETDATE() - DATETIMESTARTED <iDays
SELECT * FROM tblTable WHERE GETDATE() - 'DATETIMESTARTED' <iDays
thanks.
This is a function that I created to insert dates and times into an Access database in this format "YYYY-MM-DD HH:MM:SS"
It seems to work fine.
Can anyone see any difficulties with the function causing problems on a UK or US server?
<%
Function AccessDateTime (str)
Dim aDay
Dim aMonth...
Hi this is the new layout that I have been working on, it validates. I would like to know your thoughts on how it has been constructed, anything that stands out that might need changed or could be done better.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>...
I noticed that if I use a 3 column layout using floats that there is column wrapping when the browser window is narrowed.
Is this just something you have to live with when using Floats?
Does absolute positioning guard against this?
CSS
#leftnav
{
float: left;
width: 140px;
margin: 0;
padding...
Using the code below the links navigation bar doesn't follow the header in Firefox, it overlaps it. Any ideas on how to solve this?
<style text="text/css">
body { padding:0; margin:0; }
#header {clear:both;width:100%;
}
</style>
<body>
<div id="header">
<div style="float:left; width:50%;">
<a...
What I am trying to do with the code below is have a logo on the top left hand side and a banner on the top right hand side followed all importantly by the navigation bar with links. My issue is that the navigation bar doesnt directly follow just below the images.
Any advice on how to achieve...
With the code below in IE, the floating image overlaps the border but doesn't in FF. How can I solve this?
<div style="border:solid 1px #8DA6CE;background:#EEF3FB;padding:3px;">
<img src="/images/myimage.gif" width="75" height="43" border="0" alt="your site"...
Is there a better way to have the site image top left and then a banner image right. This is what I've come up with
<div>
<img src="images/image1.gif" width="100" height="100" alt="image 1" style="float:left;" />
<img src="images/image2.gif" width="468" height="160" alt="image 2"...
I want to make sure that the querystring value is numeric, and that it isn't empty otherwise do a redirect
The code below works
iOptionID = Request.QueryString("ID")
If Len(iOptionID)<1 OR IsNumeric(iOptionID)=False Then
Response.redirect "admin_options.asp"
End If
How could I make sure that...
Below is a snippet of code that I got from a site. For me it looks wrong as I think the bottom padding of 20px has been left out.
This line:
height:33px; /* 14px + 17px + 2px = 33px */
Should it not be:
height:53px; /* 14px + 17px + 20px + 2px = 53px */
#Header {
margin:50px 0px 10px 0px...
Hi, I am working on a script that utilizes the filesystemobject. Is there any server/hosting issues that I should be aware of that might affect the filesystemobject from working correctly that I should be aware of?
Is there a way to schedule SQL server to send an email.
For instance if I had a smalldatetime column and wanted to send an email to all customers whose subscription was over a year from the value in the smalldatetime could this be done?
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.