2 posts tagged with css by kaizen.
Displaying 1 through 2 of 2.

Inline Block Elements

HTML / CSS Gurus. I have a TABLE with a bunch of dynamic columns. The table may have 4, 7, or 20 columns. Each table column HEADER ( TH tag ) contains two inline elements, 1) a tiny image icon for sorting, and 2) a column description in text. I would like these two elements to sit next to each other and NEVER ON SEPARATE LINES, essentially putting them into an inline-block. Unfortunately, if the text in the corresponding TD tags are below a certain width, the browser will force the width of the column, and subsequently force the two inline elements of the TH onto two different lines. How can I prevent this from happening in IE & Firefox without explicitly declaring the width of the columns. I have to use a IMG element for my icons, and not a css background-image.
posted by kaizen on Aug 9, 2007 - 8 answers

Kris-Kross Site Scripting

Help explain how a hacker could perform a XSS exploit. This article explains how a bad-guy could send a malicious query through an unvalidated searchbox and essentially modify the html on the search results page. What I don't understand is how the hacker could have this malicious code display on a page that I am browsing. Except for unvalidated forum posts, how can a hacker inject malicious code into a webpage. If I ensure that my forum posts don't allow HTML and I am not loading external js files, what do I have to worry about?
posted by kaizen on May 22, 2007 - 6 answers

Page: 1