Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Cullen411
  • Content: Threads
  • Order by date
  1. Cullen411

    margin gap

    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...
  2. Cullen411

    relative positioning

    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.
  3. Cullen411

    lists

    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...
  4. Cullen411

    position:relative

    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...
  5. Cullen411

    server.htmlencode sql injection

    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
  6. Cullen411

    malicious input

    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...
  7. Cullen411

    Dates - # delimiters

    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
  8. Cullen411

    yyyy-mm-dd

    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?
  9. Cullen411

    SQL ' Dates

    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.
  10. Cullen411

    adding dates/times to access

    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...
  11. Cullen411

    New Layout

    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>...
  12. Cullen411

    3 column layout using floats

    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...
  13. Cullen411

    Firefox issue

    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...
  14. Cullen411

    navigation bar below 2 floats

    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...
  15. Cullen411

    Overlaps in IE

    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"...
  16. Cullen411

    CSS image float

    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"...
  17. Cullen411

    If Len(iOptionID)&lt;1 OR IsNumeric(iOptionID)...........

    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...
  18. Cullen411

    CSS box model issue

    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...
  19. Cullen411

    Filesystemobject

    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?
  20. Cullen411

    setting a schedule

    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?

Part and Inventory Search

Back
Top