Jump to content

celfyn

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About celfyn

  • Rank
    Newbie
  1. celfyn

    CSS and firefox

    Hello,I'm in the middle of creating a website which will hold my brother's animation stuff. I have created the gallery and can be seen at http://www.iestynroberts.com/pages/photography.php. It seems to be working in IE7 and 6, but on the initial load with Firefox, it displays the images in a list - one under the other, rather than a 4 column table layout. But on refreshing the page, it displays as it should. Here is the CSS code I use to style the gallery...#albumlist{ width:872px; height:auto;}#albumlist ul{ list-style-type:none; display:table-cell; padding:0px; margin:0px; padding-left:18px;}#albumlist li{ float:left; /*padding-right:18px;*/ padding-right:18px; padding-bottom:18px;}Can you see what I'm doing wrong here?Thank you!!
  2. Hello,I have created an asp page which creates a Word document on the fly. It uses several stored procedures to retrieve the relevant information from the database. Everything works fine, except for the header and footers. Does anyone know how would I write something to the headers and footers from the asp page? Here is the code I use to generate the Word document: Response.ContentType = "application/msword" Response.AddHeader "Content-Disposition", "attachment;filename=Filenamedoc"To write to the document I simply use Response.Write.All the styling is handled by CSS.Thanks!
  3. do you mean put the purple square as a background of the table and have the other one (blue-ish rectangle) in a table cell?
  4. Are there any free versions available anywhere?
  5. I have developed this so that a user clicks on a button and uses a different css page to create the print-out. The only problem is that I wan't the page in landscape and I don't wan't the printer header and footer. I know that this can be changed by the user by going to the page setup, but i really don't want this.So, has any body got a script to create the pdf in any language? I would prefer perl, asp.net, php or asp, but will take anything. Sory that this isn't really to so with asp, but it's here where I started the post.Thanks!
  6. celfyn

    :after pseudo-element

    Is it possible to use the pseudo-element :after to insert a line break after the defined element? For example:span:after{content: <br />;}so when a span comes up in the html, it will display the content after it on another line, like so.just some <span>text</span> - will becomejust sometextCheers!!
  7. Thanks for you'r quick reply! I'll have to think of another way of doing this then.Cheers!!
  8. Has anyone got the script to create a simple pdf document from an asp page?Cheers!
  9. I have a stored procedure which returns a set of columns form different tables. Is it possible to use the distinct keyword on one of these columns? I have tried the following:SELECT distinct(ID_Staff), Pay_Number, First_Name ...It doesn't generate errors, but doesn't give me the result I want - it returns all the rows for the query.Thanks
  10. celfyn

    SQL 'SET' problems

    I got it to do what I want it by adapting the code, and not using a variable to hold the value. Here's the code.SELECT ID_Staff, Rhif_Cyflog, Enw_Cyntaf, Enw_Canol, Cyfenw, b.rhif_cwrs, b.rhif_digwyddiad, c.dyddiad_cychwyn, c.dyddiad_gorffen, dyddiad_adnewydduFROM staff aINNER JOIN tbl_staffCyrsiau b on a.id_staff = b.rhif_staffINNER JOIN tbl_DigwyddiadauCwrs c on b.rhif_cwrs = c.rhif_cwrsWHERE c.rhif_cwrs = 98and dateadd(month, c.dyddiad_adnewyddu, c.dyddiad_gorffen) between getdate() and dateadd(month, 6, getdate())Thanks
  11. celfyn

    SQL 'SET' problems

    Please check my code below. Sorry, but the table and column names are in welsh.CREATE PROCEDURE dbo.usp_CyrsiauAdnewyddu @rhif_cwr intDECLARE @dyddiadAdnewyddu datetimeASSELECT ID_Staff, Rhif_Cyflog, Enw_Cyntaf, Enw_Canol, Cyfenw, b.rhif_cwrs, b.rhif_digwyddiad, c.dyddiad_cychwyn, c.dyddiad_gorffen, dyddiad_adnewydduFROM staff aINNER JOIN tbl_staffCyrsiau b on a.id_staff = b.rhif_staffINNER JOIN tbl_DigwyddiadauCwrs c on b.rhif_cwrs = c.rhif_cwrsWHERE c.rhif_cwrs = @rhif_cwrs--SET @dyddiadAdnewyddu = c.dyddiad_gorffen + dateadd(month, c.dyddiad_adnewyddu, getdate())--AND @dyddiadAdnewyddu BETWEEN getdate() AND dateadd(month, 6, getdate())Is there any way of me being able to set @dyddiadAdnewyddu with the values from table tbl_DigwyddiadCwrs as I am trying to above? I cannot do it at the beginning as the tables haven't been selected etc.What I am trying to do is set the variable @dyddiadAdnewyddu with the date value of whatever is in c.dyddiad_gorffen + the int value in c.dyddiad_adnewyddu - this represents the months.Thanks
×
×
  • Create New...