I've been looking for an answer on this problem, from what I know you cannot embed, whether that is using for example <object> a SVG file and style that SVG file externally, whether that is a external or embedded CSS file if there is a method that I'm unaware of plesae guide me to the page.

Member Avatar
Member Avatar
+0 forum 2

Just a question on preference: Given a method that returns a boolean value, how would you write an If statement to check the return value of it? Like this? private bool MyMethod() { // doing stuff } private void OtherMethod() { If (MyMethod() == true) { // do stuff if true } else { // do stuff if false } } like this? private bool MyMethod() { // doing stuff } private void OtherMethod() { If (MyMethod()) { // do stuff if true } else { // do stuff if false } } some other way? Any reason why you …

Member Avatar
Member Avatar
+0 forum 12

I have a tkinter app that has 2 frames. The frame on the left has a bunch of buttons and the frame on the right has a text widget. I use the create_buttons function below to make the buttons. Is there a way to have the button stay sunken when clicked. Then when I click the next button that one stays sunken? I want to be able to see the last button clicked. def create_buttons(self): ''' Loop that creates a button for each file in lterrors.txt. The buttons uses the client/server name as its title text and a custom action …

Member Avatar
Member Avatar
+0 forum 2

There's trouble in using font awesome icons as they suggest, so I am using them as below - <i class="nimg nicon-ico_help_rnd_lg" style='color: #FFFFFF !important;' alt="Info" title="Color code information" onclick="info()"></i> and style below - .nimg { height: 37px; width: 37px; float: left; /*display: table-cell;*/ display: block; text-indent: -9999px; vertical-align: middle; /*border:1px solid #FFFFFF;*/ position: relative; color: #FFFFFF !important; /*background-color: #FFFFFF !important;*/ } .nicon-ico_add_rnd_sm{ background: url("/img/plus27.svg") no-repeat scroll 0 50% / 37px 37px transparent; } since I am trying to output the icons on black background, I want them to be in white color. which I am not able to change despite …

Member Avatar
Member Avatar
+0 forum 8

Hello im really confuzed in the HTML and CSS language i have maked a footer and some div elements in the body so when i scroll up the footer doesnt is alwaus visible when i scroll down the button is hovering the footer and also the other div element i have this code and please some one explain me why this happens, and how do i make when the page is zoomed by the browser to be zoomed correctly and that two buttons in the top right corrner to not coming in the left while you zooming.. Copy and Paste …

Member Avatar
Member Avatar
+0 forum 5

Hi Friends, I want to add this css style to existing template. .citems { font-family: 'Open Sans', sans-serif; font-size: 14px; color: #000; line-height: 20px; border-bottom-width: thin; border-top-style: none; border-right-style: none; border-bottom-style: dotted; border-left-style: none; border-top-color: #000; border-right-color: #000; border-bottom-color: #333; border-left-color: #000; text-indent: 10px; } @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v8/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); How can I do this? Are there any plugin or should I link new style sheet. If so, how can I link new style sheet?

Member Avatar
Member Avatar
+0 forum 2

Ok, so here is the CSS code in an external sheet: #header{ position:fixed; width:100%; height:15%; } #hedr{ position:fixed; height:5%; width:6%; top:5%; left:30%;} #nme{ position:fixed; font-size:400%; top:3%; left:10%; } Here is the php document: <!DOCTYPE HTML> <html> <head> <meta name="keywords" content="Roun, David Roun, Rounsworld, Heather Roun"> <meta name="description" content="Personal website"> <meta name="author" content="David Roun"> <meta charset"UTF-8"> <link rel="stylesheet" type="text/css" href="bground.css"> </head> <body> <?php session_start();?> <div id="header"> <table> <tr><td><img id="hedr" src="pages/<?php echo $_SESSION['name'] . '/' . $_SESSION['picture'];?>"/></td><td id="nme"><?php echo $_SESSION['name'];?></td></tr> </table> </div> </body> </html> The problem is that the CSS code works when it is on the same page as the php …

Member Avatar
Member Avatar
+0 forum 5

Hello everyone! Needing some help with styling a DOM parse. I have been toying around with the style but continue to end up with whitespace parse errors... So first of all here is the working code Sorry about the paste however the code snippet continued to display: The code snippet in your post is formatted incorrectly. Please use the Code button in the editor toolbar when posting whitespace-sensitive text or curly braces. Even though I was using the code button. Currently the list parses in a direct row going down. I want it to display 4-5 elements on a line …

Member Avatar
Member Avatar
+0 forum 5

Hi I am a beginner programmer and I am really interested about learning new skills. So I need your help. I have a question regarding designing. I want to design a website where the user will be first shown couple of example page designs/template and then the user chooses one of it. Then the user will be asked to give his inputs in a form. After this, when the user presses the Submit button, the details of the form will be automatically written in that chosen example page using the user details. How can this be done? Which languages should …

Member Avatar
Member Avatar
+0 forum 6

I have a gallery of product images in an e-commerce site which the client wants to "pop-out" on rollover. I wrote this CSS style to do it however while it works fine in Firefox .. not so in IE10. Can anyone suggest a work-around with this code that will support cross browser? Any help would be much appreciated. <style type="text/css"> #btnProduct{ -webkit-opacity: 0.5; -moz-opacity: 0.5; } #btnProduct:hover{ -webkit-transform: scale(1.06,1.06); -moz-transform:scale(1.06,1.06); } </style> And on each image: <a href="#"><img src="images/SC-Brand-buttons_30.png" width="200" height="193" border="0" id="btnProduct" onMouseOver="mOver(this);" onMouseOut="mOut(this);"/></a>

Member Avatar
Member Avatar
+0 forum 11

Because things, these days, seem a little 'slow' around this forum, please forebare this old post, (that was recently resurrected by an inquiring mind), and humour this 'update', in good faith that this update might be appreciated by some beginning students of C++ ... :) // beginnerBadCppExampleCodeBeforeFixedUp.cpp // 2013-08-14 // // This following 'Supposed example' of good code is ... // re-worked ... // to demo an acceptable coding style for current C++ students ... #include<iostream.h> #include<conio.h> float no,price[50],total[50],qty[50],tt; char item[30]; void main() { int i,j; clrscr(); cout<<"\n\n\t\t\tRaje's Billing Software\n\n"; cout<<"\nEnter The Number of Products you'v Purchased:"; cin>>no; cout<<"\n\nSL No\tITEM …

Member Avatar
Member Avatar
+0 forum 9

Here's my code >> [Click Here](https://dl.dropboxusercontent.com/u/21617707/accordion.rar) And here's an image showing the problem! >> [Click Here](http://i41.tinypic.com/4id7dc.png) Rest is self explainatory. I used the same code in IE and the problem didn't occur. I haven't tried Firefox. The problem is most people seem to use Chrome these days and thats why I need a fix!

Member Avatar
Member Avatar
+0 forum 2

I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever one of the tool gets refresh with the other selectchange of tool which is also inside the updatepanel than both of the script gets removed. **For example:** <head runat="server"> <title>script not working</title> <script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script> <link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" /> <script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js"></script> <script language="javascript"> $(function() { $('form').jqTransform({ imgPath: …

Member Avatar
Member Avatar
+0 forum 3

I'm not much of a javascript developer right now, as I just recently found the need to learn it. I'm using jQuery, and Javascript (sometimes stupidly, like when I find out jQuery already "abstracted out" something I wrote a 20 line function for). My question is about style though, with all the anonymous functions wrapped in jQuery functions, I get lost some times looking for the missing } or ) or ; (i like to use the ; even though I think it's not needed in some places). I had to get a little open-source .js file for part of …

Member Avatar
Member Avatar
+0 forum 4

Hello, I am making a number of libraries to help me with my projects and I am torn between two approaches. I will show you what each looks like. I have no idea which would be considered 'better' in general. Locals: #ifndef SOME_GUARD #define SOME_GUARD VERSION_NUMBER #ifdef __cplusplus extern "C" { #endif typedef struct { /*something here*/ } myNewTypeTAG, *myNewType; myNewType function(myNewType); // for example #ifdef __cplusplus } class myNewTypeCppMode { //private: myNewType t; public: myNewTypeCppMode &function(myNewType o) { t=function(o); return *this; } }; #endif #endif Context (weightless): #ifndef SOME_GUARD #define SOME_GUARD VERSION_NUMBER #ifdef __cplusplus extern "C"{ #endif typedef struct …

Member Avatar
Member Avatar
+0 forum 9

hello Facebook or youtube is not showing the style sheets. My browser isn't showing drop down menu's or rollover buttons. They only show text as shown in the Picture it's all fine in other browsers, I am using waterfox. http://i1310.photobucket.com/albums/s656/mat1998x/Screenshot47_zps001bc803.png

Member Avatar
Member Avatar
+0 forum 1

good day fellas, i just curios if there such thing as like below: style.css @media handheld, only screen and (max-width: 767px) { ->link to another css file } cause actually i want to detect if its a mobile then it will link to another stylesheet that i made for mobile or is there another effective way in doing this

Member Avatar
Member Avatar
+0 forum 1

I have this code to showor hide a div when click on button.But... If you ckick button the div appear.. but when you click again the div doesnt dissapear:| Code: function infoshowhide(){ if(document.getElementById('info11').style.display = 'none') { document.getElementById('info11').style.display = 'block'; } else { document.getElementById('info11').style.display = 'none'; } } *and i need something like this for final result :* function infoshowhide(){ contentxinfo=document.getElementById('info') + 'x'; //x is a nr i wish to make an array... info1 ...or info2 .. info3...this thing if(document.getElementById(contentxinfo).style.display = 'none') { document.getElementById(contentxinfo).style.display = 'block'; } else { document.getElementById(contentxinfo).style.display = 'none'; } }; i wish to make an array... info1 …

Member Avatar
Member Avatar
+0 forum 7

I have a html table with CSS style supported with javascript that sorts the list of products in the table. What I want is a PHP code that allows me to add new column online. There will be an add button but only visible to the admin.

Member Avatar
Member Avatar
+0 forum 1

Hi. I'm trying to create a small editor for a website. One of the features is a drag and drop interface. I'd like for the user to be able to drag elements to another position in the page. I was thinking of having an iFrame of the site, and applying JS and CSS to enable drag and drop ability. Here's a screenshot of a CMS that does that: ![spruz](/attachments/large/3/spruz.png "spruz") The site is an iFrame. When I open the iFrame, you can't rag and drop. So, I'm assuming that they somehow apply changes in the parent page. Is there any …

Member Avatar
Member Avatar
+0 forum 1

I recently converted all my .html files to .php, and while the stylesheet they're linked to (which hasn't changed) works almost perfectly, the <h1> through <h6> tags (headings) don't work with the new .php files. The font appears the same size as the body, which is too small to be legible with the font I chose for my article titles and subtitles, which use <h1> and <h2>. It's strange; when I update any class at all, the changes appear in-browser on refresh, as they should. But not so for the headings. Any advice?

Member Avatar
Member Avatar
+0 forum 3

i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you

Member Avatar
Member Avatar
+0 forum 7

Hey, I'm building my own platform mainly for a project, but, for my own personal use as well.. I'm also changing the style of programming that I do it in, and, setting up some rules.. I just wondered if there are any disadvantages to the way that I am setting things out: Everything in functions, no "stray" code and a different formatting to if statements: [code] <?php $app = new StdClass; function compare($number1, $number2) { if($number1 > $number2): return true; else: return false; endif; } function main() { // Main is automatically outputted. // And, for the application to work …

Member Avatar
Member Avatar
+0 forum 7

So, this seems like it should be the default to me... if you're going to make your own picture for a button, I don't see why you'd want the default border around it, but I can't for the life of me figure out how to get rid of it. I also need to change the picture of the button while it's pressed (and change back once it's released) so you can tell that you're actually pressing it. I actually did figure this out yesterday (It literally took all day though.), but deleted the code because I decided not to use …

Member Avatar
Member Avatar
+0 forum 5

Hello guys I have two table styles for a web application, in which the tables rows are clickable as objects (meaning, clicking anywhere in the [icode]<tr></tr>[/icode] tag will send the click command. The problem is, my two table styles behave differently. I want the row to change background color on hover, so that, if my cursor is anywhere on the row (any cell), the row will activate the on hover style. The first style works perfectly, though the second not as much. My two styles are as follows: [code=css] #formProyectoContainer .form .table { background-color:#fff; background-image:url("images/tblBackground.png"); background-repeat:no-repeat; background-position:bottom right; border:inset 2px …

Member Avatar
Member Avatar
+0 forum 2

Why is it that the style is not working? why? [CODE]<html> <head> <title> Starbuzz Coffee</title> <style type=”text/css”> body { background-color: #d2b48c; margin-left: 20%; margin-right: 20%; border: 1px dotted gray; padding: 10px 10px 10px 10px; font-family: sans-serif; } </style> </head> <body> <h1>StarBuzz Coffee Beverages!</h1> <h2>House Blend , $1.49</h2> <p>A smooth, mild blend of coffee from mexico,Oblivia and Guatemala</p> <h2>Mocha Coffee Latter , $2.96</h2> <p>EsPresso, Steamed milk and Chocolate chip</p> <h2>Capuccino , $1.07</h2> <p>A mixture of Espresso, steamed milk and foam</p> <h2>Chai Tea , $2.59</h2> <p> A spicy drink with black tea, spices, milk and honey</p> </body> </html>[/CODE]

Member Avatar
Member Avatar
+0 forum 7

Hey everyone. I've been contemplating something lately and I haven't been able to come to a conclusion, so I thought I'd see what you all thought about it. When checking for null (nevermind that we should try to not make something null in the first place), would it be better to check that something is not null and continue, or to check if it is null and exit the method early? ie: A) [CODE] void method() { if(object != null) { dostuff; } } [/CODE] or: 2) [CODE] void method() { if(object == null) return; dostuff; } [/CODE] I tend …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I'm new to web development and am experimenting with different things; one of which would be creating a visually appealing "drop-down" menu. I had a simple CSS selector setup before but I opted for a JavaScript solution instead, making the change for the greater flexibility which the approach provided me. I almost have the entire thing down, save for an annoying nuance that seems to crop up for no apparent reason. My plan is to set the height for all <div> elements to 0 except the one being accessed. Then the height for the active <div> element is …

Member Avatar
Member Avatar
+0 forum 2

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so I thought it might be a good idea to get some inputs on something I put some time and effort in to create with my best knowledge. I created a class PNVector that allows to me to create an N-sized vector on which I overloaded several operations. Apart from an …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am very new to working with php and I need a little help getting the fields from my form divided into two rows and properly aligned when output to the user. [B]Function:[/B] This is a Client Profile type of program. A form is displayed to the user and the fields are pre-populated with client's current data from a MySQL DB. The user can then edit the form fields and use the submit button to UPDATE the corresponding data in the DB. [B]Problem:[/B] I am trying to split the form fields into two separate cells in a row inside …

Member Avatar
Member Avatar
+0 forum 5

The End.