before you all start shouting out: margin-left: auto; margin-right: auto; let me surprise you. I'm not after the obvious solution. i'm after the microsoft solution. (pls, don't kill me)
i'm trying to get my website to validate through xhtml1.1 and i have it all nice and neat on firefox. but on IE the div won't center (unless i use the deprecated tag
).
since i believe all users should be able to see a correct (even if lacking some effects) view of the website, i have to try to center this damned div. :P
Just wondering if anyone knows good mailing list manager (preferably free - lol) and i need to know run in which platform. I found mailing list software that is quite good : http://www.xequte.com/maillistking/index.html but it doesnt have web based administration.
I can get it to open in another window but I want that popup to also include some text underneath the picture that pops up. I cant figure out where the heck to put it in.
My boss called me over and asked me to write a T-SQL function on behalf of our web guy, that would arbitrarily strip out all HTML tags from a VARCHAR. In any other language like PHP, Perl, etc., I'd employ Regular Expressions to do this globally. However, T-SQL only really has PATINDEX and CHARINDEX, those aren't all that powerful.
I did wind up coming up with an iterative solution, which I thought I'd share with everyone to get suggestions and feedback.
CREATE TABLE #tmpText ( id INT IDENTITY(1, 1), data varchar(4000) )
INSERT INTO #tmpText (data) VALUES ('this is some html')
INSERT #tmpText VALUES ( '
Some Name
SOME HTML text after the body' )
INSERT #tmpText VALUES ( 'Another Name
Another HTML text after the body' )
-- WHILE a '<' and '>' pair are present and the former's position is less than the latter's position value -- Find a '<' then the next '>' positions, and run a stuff to remove whatever's in between!
BEGIN TRANSACTION WHILE EXISTS (SELECT 1 FROM #tmpText WHERE PATINDEX('%<%>%', data) > 0 ) BEGIN UPDATE #tmpText SET data = STUFF(data, PATINDEX('%<%>%', data), CHARINDEX('>', data) - PATINDEX('%<%>%', data) + 1, '') WHERE PATINDEX('%<%>%', data) > 0 END
SELECT * FROM #tmpText
ROLLBACK
I'm going to keep trying to dissect this in order to come up with a cleaner, non-iterative solution. If anyone else already has a function that does this in one fell-swoop, rather than via looping, PLEASE share it! :-)
UPDATE: I've made further code changes to handle a few odd circumstances and have finished the function. Thought I'd share it with everyone for a "peer review." Please comment away!
ALTER FUNCTION uf_stripHTML ( @strHTML varchar(8000), @flgFormat int = 1 ) RETURNS varchar(8000) AS BEGIN
-------------------------------------------------------------------------------------------------- -- Date Written: 02-10-2005 -- Purpose: Arbitrarily strip all text between all pairs of < > tags. This SHOULD be -- HTML but theoretically could be other data? ---------------------------------------------------------------------------------------------------- -- Input Parameters: @strHTML = The string that we are stripping HTML from. -- @flgFormat = If set to 1 (DEFAULT), then the function will attempt to -- preserve basic formatting by detecting non-breaking spaces, start and end -- paragraph tags, and break-return tags, and replacing them with their -- ASCII equivalents. ---------------------------------------------------------------------------------------------------- -- Comments: This solution employs an iterative algorithm to repeatedly sweep through -- the variable's text, removing HTML tags one at a time. ----------------------------------------------------------------------------------------------------
DECLARE @ltPosition int
-- If flgFormat is 1, then replace pre-determined list of tags and characters with -- corresponding values! IF @flgFormat = 1 BEGIN SET @strHTML = REPLACE(@strHTML, '
', CHAR(10) + CHAR(13)) SET @strHTML = REPLACE(@strHTML, '
', CHAR(10) + CHAR(13)) SET @strHTML = REPLACE(@strHTML, ' ', CHAR(10)) END
-- STRIP OUT HTML HERE WHILE (SELECT PATINDEX('%<[^ ]%>%', @strHTML)) > 0 BEGIN -- Must search for the correct '>' because any unmatched ones will cause errors! SET @ltPosition = 0 WHILE (PATINDEX('%<[^ ]%>%', @strHTML) > @ltPosition) SET @ltPosition = CHARINDEX('>', @strHTML, @ltPosition + 1)
SET @strHTML = STUFF(@strHTML, PATINDEX('%<[^ ]%>%', @strHTML), @ltPosition - PATINDEX('%<[^ ]%>%', @strHTML) + 1, '') END
I was wondering if anyone could help me fix my layout (well the html in it) so that it shows up in Firefox. It shows up in internet explorer but not in firefox. I'd appreciate any help. Thanks!!
If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the www.cakesbytammy.com home page.
You can click Search to look for information on the Internet.
HTTP Error 403 - Forbidden Internet Explorer
I also get this when I type in her domain name, minus the specific HTML file. suchas http://www.somedomain.com/ Any suggestions as to WTF is going on?!??!
i doubt you can do this.. but i was wondering if there was a way to use any sort of programming to text wrap between 2 columns.
i have a page with 2 columns of text, side by side, and i don't want the white space at the bottom. however, since text is displayed differently on different platforms [mac and pc] i have to just leave it and increase the padding an paragraph set up specifically for the pc. i still have the white space and i can't stand it.
so, i was wondering if anyone knew of any code to text wrap in html, css, js, php - anything - between columns.
I was wondering if anyone could recommend me a good intro to XHTML and CSS. I want to get a book that will put me on the right path to 'intelligent' web design. That is, I want to design good sites, not only in appearance but in structure as well.
hey, i'm new here. not really new to html but i don't know how to do something and I hope someone here can help. the site i'm working on is http://tearsforthedying.com.
I'd like the background to remain fixed have the text scroll as needed. But.. I have image rollovers that are part of the background - I don't want to kill those.
Can I still used a fixed background with rollovers such as I now have?
Is there anyone out there who's really really good at HTML who wouldn't mind helping? =\ I need help with my userinfo because I put in those little table boxes but I can't get my text centered [see _azzybear] and I would really like some help. I would absolutely credit you and/or your community if you have one, please?! Thank you. <3
Hey everyone, I'm looking for a free CMS for my website.
Basically, I want it to do two things. 1) I want it to fit the form I have right now as close as it can, and 2) I want it to archive my posts for viewing later.
I'm willing to comprimise a little bit when it comes to the site layout, but I'm looking for something that would be kinda easy for my co-webmasters. There's three of us and one of us is an html novice.
One final requirement: free. I know I'm asking for a lot, but I figured if anyone could help, it'd be you guys.
I have some knowledge of HTML. In fact, I made my first website (which I never posted on the internet) in HTML. Wasn't very pretty, but it was a good start. The best HTML editor would have to be HTMLed 3.2 (not the Pro). I think the non-pro one is free. It has syntax highlighting and all that jazz.
Maybe not a "HTML" question per se, but how can I save my LJ user pictures? Everytime I go to save them, it saves them as bitmap, and not GIF, and they turn to an image. Any help is very much appreciated!
Could someone provide me with some html code for this?
#1: I would like to make a html form on a website that would create new pages from that form containing that form's information. (Very simple html form code of some sort. I've done this in the past, but forgot how to do it.)
#2 (much more complicated. If it requires outside software other than java, forget it.): I would like to make a html form on a website that would create new pages that look identical to the original form, but with the blanks and buttons replaced with the form data submitted. Ideally, you would NOT be able to click any radio button or place a blinking cursor in any blank already filled with information.