xpy
-
Fixed navigation + linking to sections of the page = disaster
You could put invisible "anchors" with the present ids for each section so that the page scrolls to those anchors instead of the sections, then, just position those anchors whereever it suits you most...
-
Position problem
@Paulie_D I never mentioned "absolute" but anyway... I don't really know what is the desired result in @albertdt6 case, but I just believe that if you want to position an element you should use top, right, bottom and left. Margins and…
-
animate objects with css3 after clicking a link (before you leave the page)
Unless you put all your content in a single page and all your anchors point into the same page and you just do your animations on :target.
-
White background on menu in IE
You import a style.css which is in the canvas directory, and I thing another one which is in the wp-content/themes/canvas directory... In there there are rules which specify that #navigation has an #fffff background... For some reason, ie thinks tho…
-
Weird Google Chrome bug on text aligned to bottom of div.
That probable happens because the first time you enter the page, the images are not loaded so the browser doesn't know their actual dimensions, so the positioning is measured without them. After the images are loaded, the flow changes but the b…
-
Position problem
In order to move from top or bottom with a percentage, the parent element needs to have a defined height. Positioning an element with paddings and margins is not a very good practice because you'll probably 'push' other elements too.
-
Absolute display only on anchor page
I think you maybe should change your z-indexes, like on ul#display li:not(:target)... Or use a z-index:0 on #box...
-
Menu working in every browser except IE
You're missing the DOCTYPE....
-
MySQL class - output issues
I believe you should always handle your queries as if they produce more than one rows. So you'll always know that your function returns an array of the results. You'll also know that if your array's length is 1 you have one result.
-
Need Some Advanced jQuery/PHP help...Please?
I'd aggre with @traq for the array thing... You'll have to worry for one thing less... anyway, in the code I suggested, you are supposed to use the variable postData to your AJAX request like this $.ajax({ type: "POST", url:…
-
Need Some Advanced jQuery/PHP help...Please?
First of all, var cats = $("#categoryTable tr").length; won't work because if you remove one (not the last) and then add one, you will have duplicate Id's and names... Maybe you should just do a cats++ every time you add a cat. S…
-
PHP Search and Return Div By Class
First of all, I had an extra 'echo' in the function but i removed it so it's ok now... Secondly, $code should be a string with the code you want to 'strip', "the_content()" looks like a function... Of course, to …
-
Help Me for Making a Javascript to move a text in a Webpage.
You have syntax errors.... here
-
Content changes its position after a while
Absolute Positioned elements are positioned relative to the last of their parent elements that has a positions defined. Because there have no parent element with a defined position, the video and the text are positioned relative to the . Try setting…
-
Aligning two position:absolute elements to each other's vertical center
is that what you want?
-
PHP Search and Return Div By Class
@Schmotty ups... wrong paste :$
-
Need help applying a class to an image
I think you should use some JavaScript to wrap your images with a tag or just use a CSS3 box-shadow which may have some compatibility issues with ie....
-
Aligning two position:absolute elements to each other's vertical center
You don't always have to specify widths and heights for absolute positioned elements. Setting top and bottom or left and right 'fixes' their width (or height) in relation to their container, if you experiment a little you'll see …
-
jquery cycle on an ajax loaded page with hash
I suppose that every time you load content with ajax you must call again$('#slideshow').cycle({ fx: 'fade', prev: '#prev', next: '#next', timeout: 0 }); and that's because the…
-
PHP Search and Return Div By Class
Ok... I did this function which uses regular expressions: function getDivByClass($code,$class) { $regExp= "/]*class=[\"']".$class."[\"'][^>]*>(.*?)/"; $results = array(); preg_match_all($regE…
-
Styling all elements before an element
OK... I've been thinking for a very long time... I had never put it in practice until now... TADA! The Previous Element Selector!! It is fake of course... But it does the trick... And also it probably won't work on ie...
-
Image over a gradient background
You probably just need to play with vertical-align to both .sidebarHeader and . sidebarHeader img .
-
Clearing part of a form and submitting
I don't quite understand... Your problem is when you are checking if isset()?? If so, you could also use if != '' after the isset() check like (if(isset($variable)) && $variable!=''){...} am I getting it right?
-
Incrementing a value in pure CSS
:D I knew something would go wrong! I'll link it again... HERE it is as a dabblet and HERE it is as a JSFiddle I hope you can see it and it helps you :D
-
Removing scrolling bars?
The scrollbars are produced because div#backgroundImage's width and height are 200%... which makes it 2 times the with of its parent element... I don't know what are doing there (surely it's pretty weird :P ) but probably you need to …
-
Need Help With Columns For Text
Box two needs spaces before and after so the words can wrap...
-
Clearing part of a form and submitting
the first thing that comes to my mind is to clear it with JS, then, submit the form... The second thing is to put this input out of the form... Unless I'm not getting it right...
-
Stretch a section of page to full height and width
I think it is probably a resize listener like this one with jQuery. But I am pretty sure you can do this with CSS (only) too...
-
possible dominating class over parent element w/ id applied? pseudo-class?
OK... Some Days ago, @wolfcry911 told me that having an ID on the is a good idea, I thought it wasn't... He also gave me this link->http://css-tricks.com/id-your-body-for-greater-css-control-and-specificity/ which (of course) I didn't …