There are certain times that you need to have a html element to have an absolute position. IE does not display the element as intended as seen in all major browsers.
The div element displays the content in the middle of the container. In IE you need to define the top and left as 0px.
Sample (I wanted the image to be displayed inside the div element):
.bannercontainer {
position:relative;
display:table;
width:340px;
height:340px;
}
.banner {
display:table-cell;
position:relative;
width:340px;
height:340px;
}
.banner a{
display:block;
position:absolute;
left:0px;
top:0px;
}
<div class="bannercontainer">
<div class="banner">
<a href="#"><img src="images/grillers.jpg" alt="Meat Grillers" width="340" height="340" border="0"></a>
<a href="#"><img src="images/GRANDE_MEAL.jpg" alt="Amigo Grande Meal" width="340" height="340" border="0"></a>
</div>
</div>
This sample displays the element correctly since the container has been specified at the correct width and height. Otherwise, the content would be placed outside.
Website Development & Programming related to front-end and back-end. Tech news: on gadgets, technology for the web and other things I think will be of use to people to be on the know.
Showing posts with label solution. Show all posts
Showing posts with label solution. Show all posts
Monday, November 3, 2014
Wednesday, October 2, 2013
GIT repository problem
We have a 3rd party developer try to give us the updates thru their repository...
Problem is the instruction isn't clear on how to do the update. They expect everyone to know this.
The development manager just placed the command (git pull origin master). I tried running the command in gitbash. Without any instruction of specific folder to be in. Did he expect me to know this, when I have no idea how GIT worked in the first place. Thanks to the internet, now I know why I get the error:
Fatal: Not a git repository (or any parent directories): .git
He should have instructed me to change my directory to the one I cloned before. Thanks to the internet I found the solution here: http://stackoverflow.com/questions/11961600/fatal-not-a-git-repository-or-any-of-the-parent-directories-from-git-status
Problem is the instruction isn't clear on how to do the update. They expect everyone to know this.
The development manager just placed the command (git pull origin master). I tried running the command in gitbash. Without any instruction of specific folder to be in. Did he expect me to know this, when I have no idea how GIT worked in the first place. Thanks to the internet, now I know why I get the error:
Fatal: Not a git repository (or any parent directories): .git
He should have instructed me to change my directory to the one I cloned before. Thanks to the internet I found the solution here: http://stackoverflow.com/questions/11961600/fatal-not-a-git-repository-or-any-of-the-parent-directories-from-git-status
You have to actually cd into the directory first:
$ git clone git://cfdem.git.sourceforge.net/gitroot/cfdem/liggghts
Cloning into 'liggghts'...
remote: Counting objects: 3005, done.
remote: Compressing objects: 100% (2141/2141), done.
remote: Total 3005 (delta 1052), reused 2714 (delta 827)
Receiving objects: 100% (3005/3005), 23.80 MiB | 2.22 MiB/s, done.
Resolving deltas: 100% (1052/1052), done.
$ git status
fatal: Not a git repository (or any of the parent directories): .git
$ cd liggghts/
$ git status
# On branch master
nothing to commit (working directory clean)
Tuesday, July 16, 2013
MySQL WorkBench problem cannot create user
'Unhandled exception: Error creating account' error message when creating an account in mySQL Workbench.
I'm using workbench 5.2.31 CE.
This problem have popped up, when I'm trying to create a user in mySQL.
There are two steps to work around this:
- edit the sql-mode configuration. It can be found under Advance tab, Edit the text of sql-mode. Remove the part "NO_AUTO_CREATE_USER," or cut it. Then paste it back after you have created your user.
- Run the grant all previleges script as instructed below.
The solution is very simple. You just have to run one of this statement in the Workbench Query window:
GRANT ALL PRIVILEGES ON *.* TO changetousername@localhost;
GRANT ALL PRIVILEGES ON *.* TO 'changetousername'@'%';
This will create an account without password. So better set the password and change the previleges.
I don't know if this is the best work around or the worst. But if you are desperate to add a user account. This is the way that worked for me.
Here is part of the source of the solution:
http://stackoverflow.com/questions/15673640/unhandled-exception-error-creating-account
I don't know if this is the best work around or the worst. But if you are desperate to add a user account. This is the way that worked for me.
Here is part of the source of the solution:
http://stackoverflow.com/questions/15673640/unhandled-exception-error-creating-account
Labels:
Creation,
Database,
Development,
MySQL,
Programming,
solution,
SQL,
User Account
Subscribe to:
Posts (Atom)