- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 16
- Posts with Upvotes
- 14
- Upvoting Members
- 14
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
A fifties-something empty nester who codes Perl for fun and (not so much) profit.
- Interests
- Gardening, writing.
- PC Specs
- Workbed computer - ASUS running Win 7 with Apache 2.23Traveling machine - Asus laptop with Win 7
131 Posted Topics
Re: Both [CODE]<center>[/CODE] and [CODE]align="center"[/CODE] have been depreciated in the newer html versions. Go with : [CODE]<table style="margin:0 auto; text-align:center;"[/CODE] It's valid to html5. Okay - posted then saw the reply. What you have is a background graphic in a table. Add [CODE]; background-repeat:no-repeat; background-position:top center[/CODE] after the background-image in the … | |
Re: Divs are 'divisions' - blocks that can be used to format a page and hold like elements. There is frequently no need to put each graphic in its own div as a p may do as well. An 'id' acts as an anchor as well as a css identifier. Id's … | |
This: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$abbr_lang" lang="$abbr_lang"> <head> <title>$linktitle</title> <meta http-equiv="Content-Type" content="text/html; charset=$yymycharset" /> <link rel="stylesheet" href="$yyhtml_root/Templates/Forum/$usestyle.css" type="text/css" /> <script type="text/javascript"> function insertHyperlink() { window.opener.document.getElementById('wysmessage').contentWindow.focus(); var theLinktype = '$linkttext'; var mylink = document.getElementById('url').value; var theLink = theLinktype + mylink; window.opener.document.getElementById('wysmessage').contentWindow.document.execCommand("Unlink", false, null); window.opener.document.getElementById('wysmessage').contentWindow.document.execCommand("CreateLink", false, … | |
Re: OR, if it's just three columns - [CODE]<div> <div class="floatLeft"></div> <div class="floatRight"></div> <div class="center"></div> </div>[/CODE] Make sure all your widths (including margins and padding) add up to [B]less[/B] than your screen width (whether you're using percentages or not). Oddly enough, putting the center last allows the floats to go left … | |
Re: I get an 'unknown file type' when trying to unzip and look at the file in question. But in general - First [B]rename it![/B] - at least then if someone is accessing things through it, they can't find it but you can still put it back. Second: Ask your hosting … | |
Re: Well, a quick check using the keyword 'force download', indicates you can force downloads, but it isn't easy. The easiest way is to simply zip the file you want to have downloaded, since zipped files are always downloaded. | |
I'm not sure if this is the place for this, but no place else seemed to fit. I have a project that has gotten to the point of needing more rigorous version control as I am hoping to add more people to the project. I managed to get TortoiseSVN running … | |
Re: Excel isn't a web application, so I assume you're actually referring to converting the spreadsheet to a database and then querying it? In that event, there are numerous possibilities, Perl, PHP with MySQL, anything with the capacity to query a database... The most common method for a web application would … | |
Re: simplypixie has the correct answer - the ul has to be inline as well as the li. THEN if it's going to the next line, adjust the width of the wrapper. | |
Re: Are you wanting the div in question to be [B]above[/B] the rest of the content or [B]layered over[/B] the other divs? Either [ICODE]position:fixed[/ICODE] or [ICODE]position:absolute[/ICODE] should do it. But having a declared doctype is a must. | |
Re: Let's see - unless there's a version I'm not aware of, Photoshop is an image program - therefore any text in the image is IN the image and cannot be removed by css. Also, assuming the html page and the css page are in the same directory - '/image/' points … | |
Re: There are people who love w3schools and people who hate them. My own recommendation - Go to the local library (if you can) or a good used bookstore and pick up a copy whichever 'beginning website design' book that fits your learning style. Then get some space to work and … | |
Re: Echoing drjohn's recommendation - if it's not tabular data, don't use tables unless you absolutely have to. As for w3c validations - sometimes you just have to choose your battles. If everything in your css validates [B]except[/B] for the vendor specific stuff you need, then don't sweat it. And MSIE … | |
Re: OR, you can get a current book on webdesign and HTML/css from the bookstore or library and bookmark [URL="http://validator.w3.org/"]http://validator.w3.org/[/URL] to check your code. (The Dummies guides are a pretty good resource if you don't know the first thing about whatever. Once you get past that, it depends on your learning … | |
Re: You can center a block element with [CODE]margin:0 auto;[/CODE] If you need top and bottom margins other than 0, just make those changes. Text within the block is centered using [CODE]text-align:center;[/CODE] For a good tutorial on div positioning, see [URL="http://www.barelyfitz.com/screencast/html-training/css/positioning/"]http://www.barelyfitz.com/screencast/html-training/css/positioning/[/URL] | |
Re: You may have to use javascript to grab the size of the viewing window if that's where your dynamic height and width are coming from. | |
Re: You do realize you have two min-widths in there, don't you? And without a page to look at, it's hard to diagnose the problem. Like exactly what isn't working? | |
Re: Okay - you have a couple ways of doing this: According to your input the only fields that are different are 2 and 4 (starting with 0) So you could simply open the input file, sort the input file, then write it to a new file. Or you could open … | |
Re: I'm not seeing it on my monitor (1920x1080) And I can only reproduce your complaint if I turn off 'min-width' using developer's tools. Since your min-width is the same as your max-width - just set your width to pixels. | |
Re: Okay - fixed (like any positioning) means that div has moved out of the regular flow, so anything beneath it needs to have a position (or a margin) set to allow room for the fixed div above it. Note - IE has a tendency to mess this up. | |
Re: Something on the order of :[CODE]#!/usr/bin/perl # $Id: array $ # $Date: 12.02.11 $ # $HeadURL: $ # $Revision: 2011 $ # $Source: /array.pl $ ################################################################################## use strict; use warnings; use CGI::Carp; our $VERSION = 1.00; my $filename = 'arrayin.txt'; open my $DAT, '<', $filename or croak 'cannot open file'; … | |
Re: Um, css describes the STYLE of the elements. I think you want to convert this into html. In that case, if [B]I[/B] were converting this file to a table, I'd strip it to a text file - without the xml tags - load it into a spread sheet, move the … | |
Re: Within the file you need some sort of end of line marker to mark the end of a record (usually a '\n' but not always), and a delimiter between fields. As an example [CODE]open my $DAT1, '<', 'archive/title.txt' or die 'cannot open file'; my @data1 = <$DAT1>; close $DAT1 or … | |
Re: Do a search for 'formmail' There are several available for PHP, complete with good instructions. Having the actual form as in include should make no difference - so long as it renders properly on the page. | |
Re: Looks like a list with a secondary list and triangle images replacing the default disks. | |
Re: Well, for one, #content isn't even in the center - it has a left position of 14% and margin: 0 0 20px. Try setting the margin to margin: 0 auto 20px auto; and drop the left:14%. Things that should stick to the bottom don't always, especially if the content gets … | |
Re: But where is the rest of it? Without the html this is supposed to style, we have no way to know where the problem might be - aside from that space in front of the a:hover which should make no difference. | |
Re: You don't say what OS or browser. Have you tried a forced refresh (Ctrl f5) | |
Re: One, you need to have Perl and a server working on your test machine. The server needs to be configured to allow Server Side Includes in your html document. Once that's ready (along with your Perl script), the script is included with [CODE]<!--#include virtual='cgi-bin/script.pl' -->[/CODE] | |
Re: In order to do the type of changeover you want, it either has to be rendered by javascript OR use a css workaround of having the actual image being transparent and having the background of the element change with the hover by assigning either an id or class. [CODE].rollover a … |
The End.